Beispiel #1
0
 public HttpStatusCodeHandler(
     RequestDelegate next
     )
 {
     next.ThrowIfNull(nameof(next));
     _next = next;
 }
Beispiel #2
0
 public PageTimer(
     RequestDelegate next
     )
 {
     next.ThrowIfNull(nameof(next));
     _next = next;
 }
Beispiel #3
0
 /// <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));
 }