private static Func<IHttpContext, object> GetBinder(Type type) { if (type == typeof(string)) return c => c.Request.ApplicationPath; else return null; }