Partager via


ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher Méthode

Définition

Surcharges

AddServiceLogEnricher(IServiceCollection)

Ajoute une instance de l’enrichisseur de service au IServiceCollection.

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Ajoute une instance de l’enrichisseur de service au IServiceCollection.

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Ajoute une instance de l’enrichisseur de service au IServiceCollection.

AddServiceLogEnricher(IServiceCollection)

Source:
ApplicationEnricherServiceCollectionExtensions.cs

Ajoute une instance de l’enrichisseur de service au IServiceCollection.

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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter l’enrichisseur de service.

Retours

la valeur de la propriété services ;

Exceptions

services a la valeur null.

S’applique à

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Source:
ApplicationEnricherServiceCollectionExtensions.cs

Ajoute une instance de l’enrichisseur de service au IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddServiceLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddServiceLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddServiceLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddServiceLogEnricher (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter l’enrichisseur de service.

section
IConfigurationSection

IConfigurationSection à utiliser pour la configuration ApplicationLogEnricherOptions dans l’enrichisseur de service.

Retours

la valeur de la propriété services ;

Exceptions

L’un des arguments est null.

S’applique à

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Source:
ApplicationEnricherServiceCollectionExtensions.cs

Ajoute une instance de l’enrichisseur de service au IServiceCollection.

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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter l’enrichisseur de service.

configure
Action<ApplicationLogEnricherOptions>

Délégué de configuration ApplicationLogEnricherOptions.

Retours

la valeur de la propriété services ;

Exceptions

L’un des arguments est null.

S’applique à