public static IApplicationBuilder UseSecurityUI <TKey>(this IApplicationBuilder builder, Action <SecurityUIOptions> setup = null)
        {
            var options = new SecurityUIOptions();

            setup?.Invoke(options);
            return(builder.UseMiddleware <SecurityUIMiddleware <TKey> >(options));
        }
Ejemplo n.º 2
0
 public SecurityUIMiddleware(RequestDelegate next, SecurityUIOptions options)
 {
     _next    = next;
     _options = options;
 }