public ContextServiceMiddleware(RequestDelegate next, IContextService contextService) { _next = next.NotNull(nameof(next)); _contextService = contextService.NotNull(nameof(contextService)); }
public RequestProcessorMiddleware(RequestDelegate next, IRequestProcessor requestProcessor) { _next = next.NotNull(nameof(next)); _requestProcessor = requestProcessor.NotNull(nameof(requestProcessor)); }
public ExceptionMiddleware(RequestDelegate next, IEnumerable <IHttpExceptionHandler> handlers) { _next = next.NotNull(nameof(next)); _handlers = (handlers ?? Enumerable.Empty <IHttpExceptionHandler>()).ToList(); }