Example #1
0
 public CustomMiddleware(RequestDelegate next,
                         IConfiguration configuration,
                         CustomMiddlewareOptions options)
 {
     _next          = next;
     _options       = options;
     _configuration = configuration;
 }
Example #2
0
 public static IApplicationBuilder UseCustomMiddleware(this IApplicationBuilder builder, CustomMiddlewareOptions options)
 {
     return(builder.UseMiddleware <CustomMiddleware>(options));
 }