public static IApplicationBuilder UseFilterIP(this IApplicationBuilder builder, FilterIPMiddlewareOption option) { return(builder.UseMiddleware <FilterIPMiddleware>(option)); }
public FilterIPMiddleware(RequestDelegate next, ILoggerFactory loggerFactory, FilterIPMiddlewareOption option) { _next = next; _logger = loggerFactory.CreateLogger <FilterIPMiddleware>(); _option = option; }