示例#1
0
        public static IApplicationBuilder UseHTMLMinification(this IApplicationBuilder app,
                                                              string excludeFilter)
        {
            var options = new HtmlMinificationOptions()
            {
                ExcludeFilter = excludeFilter
            };

            return(app.UseMiddleware <HtmlMinificationMiddleware>(options));
        }
 public HtmlMinificationMiddleware(RequestDelegate next, HtmlMinificationOptions minificationOptions)
 {
     _next = next;
     _minificationOptions = minificationOptions;
 }
示例#3
0
 public static IApplicationBuilder UseHTMLMinification(this IApplicationBuilder app,
                                                       HtmlMinificationOptions minificationOptions)
 {
     return(app.UseMiddleware <HtmlMinificationMiddleware>(minificationOptions));
 }
 public static IApplicationBuilder UseHTMLMinification(this IApplicationBuilder app, 
     HtmlMinificationOptions minificationOptions)
 {
     return app.UseMiddleware<HtmlMinificationMiddleware>(minificationOptions);
 }
 public static IApplicationBuilder UseHTMLMinification(this IApplicationBuilder app, 
     string excludeFilter)
 {
     var options = new HtmlMinificationOptions() { ExcludeFilter = excludeFilter  };
     return app.UseMiddleware<HtmlMinificationMiddleware>(options);
 }
 public HtmlMinificationMiddleware(RequestDelegate next, HtmlMinificationOptions minificationOptions)
 {
     _next = next;
     _minificationOptions = minificationOptions;
 }