Partager via


ExceptionHandlerMiddleware Constructeurs

Définition

Surcharges

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

Crée un objet ExceptionHandlerMiddleware.

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

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

Source:
ExceptionHandlerMiddleware.cs

Crée un objet 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)

Paramètres

next
RequestDelegate

RequestDelegate représentant l’intergiciel suivant dans le pipeline.

loggerFactory
ILoggerFactory

utilisé pour la ILoggerFactory journalisation.

options
IOptions<ExceptionHandlerOptions>

Options de configuration de l’intergiciel.

diagnosticListener
DiagnosticListener

utilisé pour écrire des DiagnosticListener messages de diagnostic.

S’applique à

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

Source:
ExceptionHandlerMiddleware.cs
Source:
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)

Paramètres

loggerFactory
ILoggerFactory
diagnosticSource
DiagnosticSource

S’applique à