public HandleCustomError(IExceptionHandlerFactory exceptionHandlerFactory) { _exceptionHandlerFactory = exceptionHandlerFactory; }
public ExceptionHandlingMiddleware(RequestDelegate next, IExceptionHandlerFactory factory) { _next = next; _factory = factory; }
public static void RegisterGlobalFilters(GlobalFilterCollection filters, IExceptionHandlerFactory exceptionHandlerFactory) { filters.Add(new HandleCustomError(exceptionHandlerFactory)); // filters.Add(new HandleErrorAttribute()); }
public ExceptionHandlingFacade(IExceptionHandlerFactory exceptionHandlerFactory) { fExceptionHandlerFactory = exceptionHandlerFactory; }
public ExceptionHandlingFacadeTest() { fExceptionHandlerFactory = Substitute.For <IExceptionHandlerFactory>(); }
public ExceptionHandlerMiddleware(IExceptionHandlerFactory exceptionHandlerFactory, RequestDelegate next) { _next = next ?? throw new ArgumentNullException(nameof(next)); _exceptionHandlerFactory = exceptionHandlerFactory ?? throw new ArgumentNullException(nameof(exceptionHandlerFactory)); }