ExceptionHandlerMiddleware Costruttori
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
ExceptionHandlerMiddleware(RequestDelegate, ILoggerFactory, IOptions<ExceptionHandlerOptions>, DiagnosticListener)
- Origine:
- ExceptionHandlerMiddleware.cs
Crea un nuovo oggetto 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)
Parametri
- next
- RequestDelegate
Oggetto RequestDelegate che rappresenta il middleware successivo nella pipeline.
- loggerFactory
- ILoggerFactory
Oggetto ILoggerFactory utilizzato per la registrazione.
- options
- IOptions<ExceptionHandlerOptions>
Opzioni per la configurazione del middleware.
- diagnosticListener
- DiagnosticListener
Oggetto DiagnosticListener utilizzato per la scrittura di messaggi di diagnostica.
Si applica a
ExceptionHandlerMiddleware(RequestDelegate, ILoggerFactory, IOptions<ExceptionHandlerOptions>, DiagnosticSource)
- Origine:
- ExceptionHandlerMiddleware.cs
- Origine:
- 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)
Parametri
- next
- RequestDelegate
- loggerFactory
- ILoggerFactory
- options
- IOptions<ExceptionHandlerOptions>
- diagnosticSource
- DiagnosticSource