public ExceptionHandlerMiddleware(RequestDelegate next, ExceptionHandlerMiddlewareOptions options) { if (next == null) { throw new ArgumentNullException(nameof(next)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } _next = next; _options = options; }
public static IApplicationBuilder UseSimpleIdentityServerManagerExceptionHandler( this IApplicationBuilder applicationBuilder, ExceptionHandlerMiddlewareOptions options) { return(applicationBuilder.UseMiddleware <ExceptionHandlerMiddleware>(options)); }