public ProtectFolder(RequestDelegate next, ProtectFolderOptions options)
 {
     _next = next;
     _path = options.Path;
 }
예제 #2
0
 public static IApplicationBuilder UseProtectFolder(
     this IApplicationBuilder builder,
     ProtectFolderOptions options)
 {
     return(builder.UseMiddleware <ProtectFolder>(options));
 }