ExceptionHandlerMiddleware 類別

定義

用於處理應用程式中例外狀況的中介軟體。

public ref class ExceptionHandlerMiddleware
public class ExceptionHandlerMiddleware
type ExceptionHandlerMiddleware = class
Public Class ExceptionHandlerMiddleware
繼承
ExceptionHandlerMiddleware

建構函式

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

建立新的 ExceptionHandlerMiddleware

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

用於處理應用程式中例外狀況的中介軟體。

方法

Invoke(HttpContext)

執行中介軟體。

適用於