Udostępnij za pośrednictwem


ExceptionSummarizationServiceCollectionExtensions.AddExceptionSummarizer Metoda

Definicja

Przeciążenia

AddExceptionSummarizer(IServiceCollection)

Rejestruje sumator wyjątków w kontenerze iniekcji zależności.

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Rejestruje sumator wyjątków w kontenerze iniekcji zależności.

AddExceptionSummarizer(IServiceCollection)

Źródło:
ExceptionSummarizationServiceCollectionExtensions.cs

Rejestruje sumator wyjątków w kontenerze iniekcji zależności.

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

Kontener wstrzykiwania zależności w celu dodania podsumowania do.

Zwraca

Wartość .services

Wyjątki

services to null.

Dotyczy

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Źródło:
ExceptionSummarizationServiceCollectionExtensions.cs

Rejestruje sumator wyjątków w kontenerze iniekcji zależności.

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

Kontener wstrzykiwania zależności w celu dodania podsumowania do.

configure
Action<IExceptionSummarizationBuilder>

Delegaci konfigurujący zestaw zarejestrowanych dostawców podsumowań.

Zwraca

Wartość .services

Wyjątki

services lub configure to null.

Dotyczy