Partager via


ExceptionSummarizationServiceCollectionExtensions.AddExceptionSummarizer Méthode

Définition

Surcharges

AddExceptionSummarizer(IServiceCollection)

Inscrit un synthétiseur d’exception dans un conteneur d’injection de dépendances.

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Inscrit un synthétiseur d’exception dans un conteneur d’injection de dépendances.

AddExceptionSummarizer(IServiceCollection)

Source:
ExceptionSummarizationServiceCollectionExtensions.cs
Source:
ExceptionSummarizationServiceCollectionExtensions.cs

Inscrit un synthétiseur d’exception dans un conteneur d’injection de dépendances.

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

Paramètres

services
IServiceCollection

Conteneur d’injection de dépendances à lequel ajouter le synthétiseur.

Retours

la valeur de la propriété services ;

Exceptions

services a la valeur null.

S’applique à

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Source:
ExceptionSummarizationServiceCollectionExtensions.cs
Source:
ExceptionSummarizationServiceCollectionExtensions.cs

Inscrit un synthétiseur d’exception dans un conteneur d’injection de dépendances.

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

Paramètres

services
IServiceCollection

Conteneur d’injection de dépendances à lequel ajouter le synthétiseur.

configure
Action<IExceptionSummarizationBuilder>

Délégués qui configurent l’ensemble des fournisseurs de résumés inscrits.

Retours

la valeur de la propriété services ;

Exceptions

services ou configure est null.

S’applique à