Condividi tramite


ExceptionSummarizationServiceCollectionExtensions.AddExceptionSummarizer Metodo

Definizione

Overload

AddExceptionSummarizer(IServiceCollection)

Registra un summarizer di eccezioni in un contenitore di inserimento delle dipendenze.

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Registra un summarizer di eccezioni in un contenitore di inserimento delle dipendenze.

AddExceptionSummarizer(IServiceCollection)

Origine:
ExceptionSummarizationServiceCollectionExtensions.cs
Origine:
ExceptionSummarizationServiceCollectionExtensions.cs

Registra un summarizer di eccezioni in un contenitore di inserimento delle dipendenze.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddExceptionSummarizer(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddExceptionSummarizer (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddExceptionSummarizer : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddExceptionSummarizer (services As IServiceCollection) As IServiceCollection

Parametri

services
IServiceCollection

Contenitore di inserimento delle dipendenze a cui aggiungere il summarizer.

Restituisce

Valore di services.

Eccezioni

services è null.

Si applica a

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Origine:
ExceptionSummarizationServiceCollectionExtensions.cs
Origine:
ExceptionSummarizationServiceCollectionExtensions.cs

Registra un summarizer di eccezioni in un contenitore di inserimento delle dipendenze.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddExceptionSummarizer(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::ExceptionSummarization::IExceptionSummarizationBuilder ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddExceptionSummarizer (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.ExceptionSummarization.IExceptionSummarizationBuilder> configure);
static member AddExceptionSummarizer : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.ExceptionSummarization.IExceptionSummarizationBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddExceptionSummarizer (services As IServiceCollection, configure As Action(Of IExceptionSummarizationBuilder)) As IServiceCollection

Parametri

services
IServiceCollection

Contenitore di inserimento delle dipendenze a cui aggiungere il summarizer.

configure
Action<IExceptionSummarizationBuilder>

Delegati che configurano il set di provider di riepilogo registrati.

Restituisce

Valore di services.

Eccezioni

services o configure è null.

Si applica a