Udostępnij za pośrednictwem


ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher Metoda

Definicja

Przeciążenia

AddServiceLogEnricher(IServiceCollection)

Dodaje wystąpienie wzbogacacza usługi do elementu IServiceCollection.

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Dodaje wystąpienie wzbogacacza usługi do elementu IServiceCollection.

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Dodaje wystąpienie wzbogacacza usługi do elementu IServiceCollection.

AddServiceLogEnricher(IServiceCollection)

Źródło:
ApplicationEnricherServiceCollectionExtensions.cs

Dodaje wystąpienie wzbogacacza usługi do elementu 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

Parametry

services
IServiceCollection

Element IServiceCollection do dodawania wzbogacacza usługi.

Zwraca

Wartość .services

Wyjątki

services to null.

Dotyczy

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Źródło:
ApplicationEnricherServiceCollectionExtensions.cs

Dodaje wystąpienie wzbogacacza usługi do elementu 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

Parametry

services
IServiceCollection

Element IServiceCollection do dodawania wzbogacacza usługi.

section
IConfigurationSection

Element IConfigurationSection do użycia do konfigurowania ApplicationLogEnricherOptions w wzbogacaniu usługi.

Zwraca

Wartość .services

Wyjątki

Każdy z argumentów to null.

Dotyczy

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Źródło:
ApplicationEnricherServiceCollectionExtensions.cs

Dodaje wystąpienie wzbogacacza usługi do elementu 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

Parametry

services
IServiceCollection

Element IServiceCollection do dodawania wzbogacacza usługi.

Zwraca

Wartość .services

Wyjątki

Każdy z argumentów to null.

Dotyczy