ApplicationEnricherServiceCollectionExtensions.AddServiceLogEnricher Yöntem

Tanım

Aşırı Yüklemeler

AddServiceLogEnricher(IServiceCollection)

hizmetine hizmet zenginleştiricisinin bir örneğini IServiceCollectionekler.

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

hizmetine hizmet zenginleştiricisinin bir örneğini IServiceCollectionekler.

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

hizmetine hizmet zenginleştiricisinin bir örneğini IServiceCollectionekler.

AddServiceLogEnricher(IServiceCollection)

Kaynak:
ApplicationEnricherServiceCollectionExtensions.cs
Kaynak:
ApplicationEnricherServiceCollectionExtensions.cs

hizmetine hizmet zenginleştiricisinin bir örneğini IServiceCollectionekler.

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

Parametreler

services
IServiceCollection

IServiceCollection için hizmet zenginleştiricisini ekleyin.

Döndürülenler

değeri services.

Özel durumlar

services, null değeridir.

Şunlara uygulanır

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

Kaynak:
ApplicationEnricherServiceCollectionExtensions.cs
Kaynak:
ApplicationEnricherServiceCollectionExtensions.cs

hizmetine hizmet zenginleştiricisinin bir örneğini IServiceCollectionekler.

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

Parametreler

services
IServiceCollection

IServiceCollection için hizmet zenginleştiricisini ekleyin.

section
IConfigurationSection

IConfigurationSection hizmet zenginleştiricisinde yapılandırmak ApplicationLogEnricherOptions için kullanılacak.

Döndürülenler

değeri services.

Özel durumlar

Bağımsız değişkenlerden herhangi biri şeklindedir null.

Şunlara uygulanır

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

Kaynak:
ApplicationEnricherServiceCollectionExtensions.cs
Kaynak:
ApplicationEnricherServiceCollectionExtensions.cs

hizmetine hizmet zenginleştiricisinin bir örneğini IServiceCollectionekler.

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

Parametreler

services
IServiceCollection

IServiceCollection için hizmet zenginleştiricisini ekleyin.

Döndürülenler

değeri services.

Özel durumlar

Bağımsız değişkenlerden herhangi biri şeklindedir null.

Şunlara uygulanır