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