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


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

Определение

Перегрузки

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

Инициализирует новый экземпляр класса DeveloperExceptionPageMiddleware.

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

Инициализирует новый экземпляр класса DeveloperExceptionPageMiddleware.

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

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

Инициализирует новый экземпляр класса DeveloperExceptionPageMiddleware.

public:
 DeveloperExceptionPageMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::DeveloperExceptionPageOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnvironment, System::Diagnostics::DiagnosticSource ^ diagnosticSource);
public DeveloperExceptionPageMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DeveloperExceptionPageOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment, System.Diagnostics.DiagnosticSource diagnosticSource);
new Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DeveloperExceptionPageOptions> * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.Hosting.IHostingEnvironment * System.Diagnostics.DiagnosticSource -> Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware
Public Sub New (next As RequestDelegate, options As IOptions(Of DeveloperExceptionPageOptions), loggerFactory As ILoggerFactory, hostingEnvironment As IHostingEnvironment, diagnosticSource As DiagnosticSource)

Параметры

loggerFactory
ILoggerFactory
hostingEnvironment
IHostingEnvironment
diagnosticSource
DiagnosticSource

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

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

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

Инициализирует новый экземпляр класса DeveloperExceptionPageMiddleware.

public:
 DeveloperExceptionPageMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::DeveloperExceptionPageOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::AspNetCore::Hosting::IWebHostEnvironment ^ hostingEnvironment, System::Diagnostics::DiagnosticSource ^ diagnosticSource, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Diagnostics::IDeveloperPageExceptionFilter ^> ^ filters);
public DeveloperExceptionPageMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DeveloperExceptionPageOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment, System.Diagnostics.DiagnosticSource diagnosticSource, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Diagnostics.IDeveloperPageExceptionFilter> filters);
new Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DeveloperExceptionPageOptions> * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.Hosting.IWebHostEnvironment * System.Diagnostics.DiagnosticSource * seq<Microsoft.AspNetCore.Diagnostics.IDeveloperPageExceptionFilter> -> Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware
Public Sub New (next As RequestDelegate, options As IOptions(Of DeveloperExceptionPageOptions), loggerFactory As ILoggerFactory, hostingEnvironment As IWebHostEnvironment, diagnosticSource As DiagnosticSource, filters As IEnumerable(Of IDeveloperPageExceptionFilter))

Параметры

next
RequestDelegate

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

options
IOptions<DeveloperExceptionPageOptions>

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

loggerFactory
ILoggerFactory

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

hostingEnvironment
IWebHostEnvironment
diagnosticSource
DiagnosticSource

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

filters
IEnumerable<IDeveloperPageExceptionFilter>

Список зарегистрированных IDeveloperPageExceptionFilterобъектов .

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