コード例 #1
0
 public ProtectPaths(RequestDelegate next, ProtectPathsOptions options)
 {
     _next             = next;
     _policyName       = options.Policy;
     _excludedPaths    = options.Exclusions ?? new List <PathString>();
     _accessDeniedPath = options.AccessDeniedPath;
 }
コード例 #2
0
 public static IApplicationBuilder UseProtectPaths(this IApplicationBuilder builder, ProtectPathsOptions options)
 {
     return(builder.UseMiddleware <ProtectPaths>(options));
 }