EnrichmentServiceCollectionExtensions.AddLogEnricher Yöntem

Tanım

Aşırı Yüklemeler

AddLogEnricher(IServiceCollection, ILogEnricher)

Günlük zenginleştirici örneğini kaydeder.

AddLogEnricher<T>(IServiceCollection)

Günlük zenginleştirici türünü kaydeder.

AddLogEnricher(IServiceCollection, ILogEnricher)

Kaynak:
EnrichmentServiceCollectionExtensions.cs
Kaynak:
EnrichmentServiceCollectionExtensions.cs

Günlük zenginleştirici örneğini kaydeder.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Diagnostics::Enrichment::ILogEnricher ^ enricher);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Diagnostics.Enrichment.ILogEnricher enricher);
static member AddLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Diagnostics.Enrichment.ILogEnricher -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddLogEnricher (services As IServiceCollection, enricher As ILogEnricher) As IServiceCollection

Parametreler

services
IServiceCollection

Zenginleştirici örneğinin ekleneceği bağımlılık ekleme kapsayıcısı.

enricher
ILogEnricher

Eklenecek zenginleştirici örneği.

Döndürülenler

değeridir services.

Özel durumlar

services veya enricher şeklindedir null.

Şunlara uygulanır

AddLogEnricher<T>(IServiceCollection)

Kaynak:
EnrichmentServiceCollectionExtensions.cs
Kaynak:
EnrichmentServiceCollectionExtensions.cs

Günlük zenginleştirici türünü kaydeder.

public:
generic <typename T>
 where T : class, Microsoft::Extensions::Diagnostics::Enrichment::ILogEnricher[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLogEnricher<T> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where T : class, Microsoft.Extensions.Diagnostics.Enrichment.ILogEnricher;
static member AddLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'T : null and 'T :> Microsoft.Extensions.Diagnostics.Enrichment.ILogEnricher)
<Extension()>
Public Function AddLogEnricher(Of T As {Class, ILogEnricher}) (services As IServiceCollection) As IServiceCollection

Tür Parametreleri

T

Zenginleştirici türü.

Parametreler

services
IServiceCollection

Zenginleştirici türünün ekleneceği bağımlılık ekleme kapsayıcısı.

Döndürülenler

değeridir services.

Özel durumlar

services, null değeridir.

Şunlara uygulanır