Pavalisoft.ExceptionHandling
1.0.0
An Unified API for ASP.NET Core Global Exception handling with ExceptionManager
|
IExceptionManager implementation as middleware component. More...
Public Member Functions | |
ExceptionHandlingMiddleware (RequestDelegate next, IExceptionManager exceptionManager, IExceptionCodesDecider exceptionCodesDecider, IActionResultHandler actionResultHandler) | |
Creates and instance of ExceptionHandlingMiddleware More... | |
async Task | Invoke (HttpContext context) |
Executes the ExceptionHandlingMiddleware to catch and handle exception using IExceptionManager More... | |
IExceptionManager implementation as middleware component.
Pavalisoft.ExceptionHandling.ExceptionHandlingMiddleware.ExceptionHandlingMiddleware | ( | RequestDelegate | next, |
IExceptionManager | exceptionManager, | ||
IExceptionCodesDecider | exceptionCodesDecider, | ||
IActionResultHandler | actionResultHandler | ||
) |
Creates and instance of ExceptionHandlingMiddleware
next | Next RequestDelegate to be executed after ExceptionHandlerDefinition invocation. |
exceptionManager | IExceptionManager added to the middleware |
exceptionCodesDecider | IExceptionCodesDecider to be used in ExceptionFilter |
actionResultHandler | IActionResultHandler used to handle created IExceptionManager |
async Task Pavalisoft.ExceptionHandling.ExceptionHandlingMiddleware.Invoke | ( | HttpContext | context | ) |
Executes the ExceptionHandlingMiddleware to catch and handle exception using IExceptionManager
context |