다음을 통해 공유


HttpClientBuilderExtensions.ConfigureHttpClient 메서드

정의

오버로드

ConfigureHttpClient(IHttpClientBuilder, Action<HttpClient>)

명명된 HttpClient를 구성하는 데 사용되는 대리자를 추가합니다.

ConfigureHttpClient(IHttpClientBuilder, Action<IServiceProvider,HttpClient>)

명명된 HttpClient를 구성하는 데 사용되는 대리자를 추가합니다.

ConfigureHttpClient(IHttpClientBuilder, Action<HttpClient>)

Source:
HttpClientBuilderExtensions.cs
Source:
HttpClientBuilderExtensions.cs
Source:
HttpClientBuilderExtensions.cs
Source:
HttpClientBuilderExtensions.cs
Source:
HttpClientBuilderExtensions.cs

명명된 HttpClient를 구성하는 데 사용되는 대리자를 추가합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ ConfigureHttpClient(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder, Action<System::Net::Http::HttpClient ^> ^ configureClient);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder ConfigureHttpClient (this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, Action<System.Net.Http.HttpClient> configureClient);
static member ConfigureHttpClient : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * Action<System.Net.Http.HttpClient> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function ConfigureHttpClient (builder As IHttpClientBuilder, configureClient As Action(Of HttpClient)) As IHttpClientBuilder

매개 변수

configureClient
Action<HttpClient>

HttpClient를 구성하는 데 사용되는 대리자입니다.

반환

클라이언트를 구성하는 데 사용할 수 있는 IHttpClientBuilder입니다.

적용 대상

ConfigureHttpClient(IHttpClientBuilder, Action<IServiceProvider,HttpClient>)

Source:
HttpClientBuilderExtensions.cs
Source:
HttpClientBuilderExtensions.cs
Source:
HttpClientBuilderExtensions.cs
Source:
HttpClientBuilderExtensions.cs
Source:
HttpClientBuilderExtensions.cs

명명된 HttpClient를 구성하는 데 사용되는 대리자를 추가합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ ConfigureHttpClient(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder, Action<IServiceProvider ^, System::Net::Http::HttpClient ^> ^ configureClient);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder ConfigureHttpClient (this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, Action<IServiceProvider,System.Net.Http.HttpClient> configureClient);
static member ConfigureHttpClient : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * Action<IServiceProvider, System.Net.Http.HttpClient> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function ConfigureHttpClient (builder As IHttpClientBuilder, configureClient As Action(Of IServiceProvider, HttpClient)) As IHttpClientBuilder

매개 변수

configureClient
Action<IServiceProvider,HttpClient>

HttpClient를 구성하는 데 사용되는 대리자입니다.

반환

클라이언트를 구성하는 데 사용할 수 있는 IHttpClientBuilder입니다.

설명

에 제공된 configureClientIServiceProvider 동일한 애플리케이션의 루트 서비스 공급자 instance.

적용 대상