ExceptionSummarizationServiceCollectionExtensions.AddExceptionSummarizer Metoda

Definice

Přetížení

AddExceptionSummarizer(IServiceCollection)

Zaregistruje shrnutí výjimek do kontejneru injektáže závislostí.

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Zaregistruje shrnutí výjimek do kontejneru injektáže závislostí.

AddExceptionSummarizer(IServiceCollection)

Zdroj:
ExceptionSummarizationServiceCollectionExtensions.cs
Zdroj:
ExceptionSummarizationServiceCollectionExtensions.cs

Zaregistruje shrnutí výjimek do kontejneru injektáže závislostí.

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

Parametry

services
IServiceCollection

Kontejner injektáže závislostí, do které se má souhrn přidat.

Návraty

Hodnota .services

Výjimky

services je null.

Platí pro

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Zdroj:
ExceptionSummarizationServiceCollectionExtensions.cs
Zdroj:
ExceptionSummarizationServiceCollectionExtensions.cs

Zaregistruje shrnutí výjimek do kontejneru injektáže závislostí.

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

Parametry

services
IServiceCollection

Kontejner injektáže závislostí, do které se má souhrn přidat.

configure
Action<IExceptionSummarizationBuilder>

Delegáti, kteří konfigurují sadu registrovaných zprostředkovatelů souhrnu.

Návraty

Hodnota .services

Výjimky

services nebo configure je null.

Platí pro