public HttpStatusCodeHandler( RequestDelegate next ) { next.ThrowIfNull(nameof(next)); _next = next; }
public PageTimer( RequestDelegate next ) { next.ThrowIfNull(nameof(next)); _next = next; }
/// <summary> /// Initializes a new instance of the <see cref="ErrorLoggingMiddleware" /> class. /// </summary> /// <param name="next">The next.</param> /// <param name="logger">The logger.</param> public ErrorLoggingMiddleware( RequestDelegate next, ILogger <ErrorLoggingMiddleware> logger) { _next = next.ThrowIfNull(nameof(next)); _logger = logger.ThrowIfNull(nameof(logger)); }