public static IAppBuilder UseRequestValidator(this IAppBuilder appBuilder)
 {
     var requestValidationHandler = new RequestValidationHandler();
     appBuilder.Use(async (env, next) =>
     {
         await requestValidationHandler.ValidateUrl(env, next);
     });
     return appBuilder;
 }
Beispiel #2
0
        public static IAppBuilder UseRequestValidator(this IAppBuilder appBuilder)
        {
            var requestValidationHandler = new RequestValidationHandler();

            appBuilder.Use(async(env, next) =>
            {
                await requestValidationHandler.ValidateUrl(env, next);
            });
            return(appBuilder);
        }