public ExceptionSenderMiddleware(RequestDelegate next, IExceptionAccumulator exceptionAccumulator) { nextMiddleware = next; this.exceptionAccumulator = exceptionAccumulator; }