Aracılığıyla paylaş


EnrichmentServiceCollectionExtensions.AddStaticLogEnricher Yöntem

Tanım

Aşırı Yüklemeler

AddStaticLogEnricher(IServiceCollection, IStaticLogEnricher)

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

AddStaticLogEnricher<T>(IServiceCollection)

Statik günlük zenginleştirici türünü kaydeder.

AddStaticLogEnricher(IServiceCollection, IStaticLogEnricher)

Kaynak:
EnrichmentServiceCollectionExtensions.cs
Kaynak:
EnrichmentServiceCollectionExtensions.cs

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

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

Parametreler

services
IServiceCollection

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

enricher
IStaticLogEnricher

Eklenecek zenginleştirici örneği.

Döndürülenler

değeridir services.

Özel durumlar

services veya enricher şeklindedir null.

Şunlara uygulanır

AddStaticLogEnricher<T>(IServiceCollection)

Kaynak:
EnrichmentServiceCollectionExtensions.cs
Kaynak:
EnrichmentServiceCollectionExtensions.cs

Statik günlük zenginleştirici türünü kaydeder.

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