Поделиться через


ExceptionHandlerMiddleware Конструкторы

Определение

Перегрузки

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

Создает новый экземпляр ExceptionHandlerMiddleware

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

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

Исходный код:
ExceptionHandlerMiddleware.cs

Создает новый экземпляр ExceptionHandlerMiddleware

public:
 ExceptionHandlerMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::ExceptionHandlerOptions ^> ^ options, System::Diagnostics::DiagnosticListener ^ diagnosticListener);
public ExceptionHandlerMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.ExceptionHandlerOptions> options, System.Diagnostics.DiagnosticListener diagnosticListener);
new Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.ExceptionHandlerOptions> * System.Diagnostics.DiagnosticListener -> Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware
Public Sub New (next As RequestDelegate, loggerFactory As ILoggerFactory, options As IOptions(Of ExceptionHandlerOptions), diagnosticListener As DiagnosticListener)

Параметры

next
RequestDelegate

Объект , RequestDelegate представляющий следующее ПО промежуточного слоя в конвейере.

loggerFactory
ILoggerFactory

Объект , используемый ILoggerFactory для ведения журнала.

options
IOptions<ExceptionHandlerOptions>

Параметры для настройки ПО промежуточного слоя.

diagnosticListener
DiagnosticListener

Объект , используемый DiagnosticListener для записи диагностических сообщений.

Применяется к

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

Исходный код:
ExceptionHandlerMiddleware.cs
Исходный код:
ExceptionHandlerMiddleware.cs
public:
 ExceptionHandlerMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::ExceptionHandlerOptions ^> ^ options, System::Diagnostics::DiagnosticSource ^ diagnosticSource);
public ExceptionHandlerMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.ExceptionHandlerOptions> options, System.Diagnostics.DiagnosticSource diagnosticSource);
new Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.ExceptionHandlerOptions> * System.Diagnostics.DiagnosticSource -> Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware
Public Sub New (next As RequestDelegate, loggerFactory As ILoggerFactory, options As IOptions(Of ExceptionHandlerOptions), diagnosticSource As DiagnosticSource)

Параметры

loggerFactory
ILoggerFactory
diagnosticSource
DiagnosticSource

Применяется к