public PoweredByMiddleware(RequestDelegate next, IPoweredByMiddlewareOptions options) { base(); this._next = next; this._options = options; return; }
public async Task InvokeAsync(HttpContext context, IPoweredByMiddlewareOptions options) { if (options.Enabled) { context.Response.Headers[options.HeaderName] = options.HeaderValue; } await _next.Invoke(context); }
public PoweredByMiddleware(RequestDelegate next, IPoweredByMiddlewareOptions options) { _next = next; _options = options; }