DeveloperExceptionPageMiddleware 类

定义

从管道捕获同步和异步异常并生成错误响应。

public ref class DeveloperExceptionPageMiddleware
public class DeveloperExceptionPageMiddleware
type DeveloperExceptionPageMiddleware = class
Public Class DeveloperExceptionPageMiddleware
继承
DeveloperExceptionPageMiddleware

构造函数

DeveloperExceptionPageMiddleware(RequestDelegate, IOptions<DeveloperExceptionPageOptions>, ILoggerFactory, IHostingEnvironment, DiagnosticSource)

初始化 DeveloperExceptionPageMiddleware 类的新实例。

DeveloperExceptionPageMiddleware(RequestDelegate, IOptions<DeveloperExceptionPageOptions>, ILoggerFactory, IWebHostEnvironment, DiagnosticSource, IEnumerable<IDeveloperPageExceptionFilter>)

初始化 DeveloperExceptionPageMiddleware 类的新实例。

方法

Invoke(HttpContext)

处理单个请求。

适用于