Dela via


ExceptionHandlerMiddleware Class

Definition

A middleware for handling exceptions in the application.

public ref class ExceptionHandlerMiddleware
public class ExceptionHandlerMiddleware
type ExceptionHandlerMiddleware = class
Public Class ExceptionHandlerMiddleware
Inheritance
ExceptionHandlerMiddleware

Constructors

ExceptionHandlerMiddleware(RequestDelegate, ILoggerFactory, IOptions<ExceptionHandlerOptions>, DiagnosticListener)

Creates a new ExceptionHandlerMiddleware

ExceptionHandlerMiddleware(RequestDelegate, ILoggerFactory, IOptions<ExceptionHandlerOptions>, DiagnosticSource)

Methods

Invoke(HttpContext)

Executes the middleware.

Applies to