コード例 #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);
 }
コード例 #6
0
 public HtmlMinificationMiddleware(RequestDelegate next, HtmlMinificationOptions minificationOptions)
 {
     _next = next;
     _minificationOptions = minificationOptions;
 }