Pavalisoft.ExceptionHandling  1.0.0
An Unified API for ASP.NET Core Global Exception handling with ExceptionManager
Pavalisoft.ExceptionHandling.ExceptionHandlingMiddleware Class Reference

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...
 

Detailed Description

IExceptionManager implementation as middleware component.

Constructor & Destructor Documentation

◆ ExceptionHandlingMiddleware()

Pavalisoft.ExceptionHandling.ExceptionHandlingMiddleware.ExceptionHandlingMiddleware ( RequestDelegate  next,
IExceptionManager  exceptionManager,
IExceptionCodesDecider  exceptionCodesDecider,
IActionResultHandler  actionResultHandler 
)

Creates and instance of ExceptionHandlingMiddleware

Parameters
nextNext RequestDelegate to be executed after ExceptionHandlerDefinition invocation.
exceptionManagerIExceptionManager added to the middleware
exceptionCodesDeciderIExceptionCodesDecider to be used in ExceptionFilter
actionResultHandlerIActionResultHandler used to handle created IExceptionManager

Member Function Documentation

◆ Invoke()

async Task Pavalisoft.ExceptionHandling.ExceptionHandlingMiddleware.Invoke ( HttpContext  context)

Executes the ExceptionHandlingMiddleware to catch and handle exception using IExceptionManager

Parameters
context
Returns

The documentation for this class was generated from the following file: