다음을 통해 공유


EnrichmentServiceCollectionExtensions.AddStaticLogEnricher 메서드

정의

오버로드

AddStaticLogEnricher(IServiceCollection, IStaticLogEnricher)

정적 로그 보강자 instance 등록합니다.

AddStaticLogEnricher<T>(IServiceCollection)

정적 로그 보강자 형식을 등록합니다.

AddStaticLogEnricher(IServiceCollection, IStaticLogEnricher)

Source:
EnrichmentServiceCollectionExtensions.cs
Source:
EnrichmentServiceCollectionExtensions.cs

정적 로그 보강자 instance 등록합니다.

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

매개 변수

services
IServiceCollection

보강자 instance 추가할 종속성 주입 컨테이너입니다.

enricher
IStaticLogEnricher

추가할 보강자 instance.

반환

services의 값

예외

services 또는 enrichernull인 경우

적용 대상

AddStaticLogEnricher<T>(IServiceCollection)

Source:
EnrichmentServiceCollectionExtensions.cs
Source:
EnrichmentServiceCollectionExtensions.cs

정적 로그 보강자 형식을 등록합니다.

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

보강자 형식입니다.

매개 변수

services
IServiceCollection

보강자 형식을 추가할 종속성 주입 컨테이너입니다.

반환

services의 값

예외

servicesnull입니다.

적용 대상