다음을 통해 공유


EnrichmentServiceCollectionExtensions.AddLogEnricher 메서드

정의

오버로드

AddLogEnricher(IServiceCollection, ILogEnricher)

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

AddLogEnricher<T>(IServiceCollection)

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

AddLogEnricher(IServiceCollection, ILogEnricher)

Source:
EnrichmentServiceCollectionExtensions.cs

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

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

매개 변수

services
IServiceCollection

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

enricher
ILogEnricher

추가할 보강자 instance.

반환

services의 값

예외

services 또는 enrichernull인 경우

적용 대상

AddLogEnricher<T>(IServiceCollection)

Source:
EnrichmentServiceCollectionExtensions.cs

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

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

보강자 형식입니다.

매개 변수

services
IServiceCollection

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

반환

services의 값

예외

servicesnull입니다.

적용 대상