Ejemplo n.º 1
0
 public ProtectFolder(RequestDelegate next, ProtectFolderOptions options)
 {
     _next       = next;
     _path       = options.Path;
     _policyName = options.PolicyName;
 }
Ejemplo n.º 2
0
 public static IApplicationBuilder UseProtectFolder(
     this IApplicationBuilder builder,
     ProtectFolderOptions options)
 {
     return(builder.UseMiddleware <ProtectFolder>(options));
 }