다음을 통해 공유


HttpClientLoggingServiceCollectionExtensions.AddHttpClientLogEnricher<T> 메서드

정의

의 보강자 instance T 추가하여 IServiceCollection 로그를 보강 HttpClient 합니다.

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

형식 매개 변수

T

보강자 유형입니다.

매개 변수

services
IServiceCollection

IServiceCollection 의 instance 추가할 입니다T.

반환

services의 값

적용 대상