ExceptionHandlerMiddleware Class

Namespace
Microsoft.AspNetCore.Diagnostics
Assemblies
  • Microsoft.AspNetCore.Diagnostics

Syntax

public class ExceptionHandlerMiddleware
class Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware

Constructors

ExceptionHandlerMiddleware(Microsoft.AspNetCore.Http.RequestDelegate, Microsoft.Extensions.Logging.ILoggerFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.ExceptionHandlerOptions>, System.Diagnostics.DiagnosticSource)
public ExceptionHandlerMiddleware(RequestDelegate next, ILoggerFactory loggerFactory, IOptions<ExceptionHandlerOptions> options, DiagnosticSource diagnosticSource)

Methods

Invoke(Microsoft.AspNetCore.Http.HttpContext)
Return type:System.Threading.Tasks.Task
public Task Invoke(HttpContext context)