Beispiel #1
0
        public static IApplicationBuilder UsePreventHotLinking(this IApplicationBuilder builder, Action <PreventHotLinkingOptions> setOptions)
        {
            var options = new PreventHotLinkingOptions();

            setOptions(options);
            return(builder.UsePreventHotLinking(options));
        }
Beispiel #2
0
 public static IApplicationBuilder UsePreventHotLinking(this IApplicationBuilder builder, PreventHotLinkingOptions options)
 {
     builder.UseMiddleware <PreventHotLinkingMiddleware>(options);
     return(builder);
 }