HttpClientBuilderExtensions.ConfigureHttpClient HttpClientBuilderExtensions.ConfigureHttpClient HttpClientBuilderExtensions.ConfigureHttpClient HttpClientBuilderExtensions.ConfigureHttpClient Method

Definition

Overloads

ConfigureHttpClient(IHttpClientBuilder, Action<IServiceProvider,HttpClient>) ConfigureHttpClient(IHttpClientBuilder, Action<IServiceProvider,HttpClient>) ConfigureHttpClient(IHttpClientBuilder, Action<IServiceProvider,HttpClient>) ConfigureHttpClient(IHttpClientBuilder, Action<IServiceProvider,HttpClient>)

Adds a delegate that will be used to configure a named HttpClient.

ConfigureHttpClient(IHttpClientBuilder, Action<HttpClient>) ConfigureHttpClient(IHttpClientBuilder, Action<HttpClient>) ConfigureHttpClient(IHttpClientBuilder, Action<HttpClient>) ConfigureHttpClient(IHttpClientBuilder, Action<HttpClient>)

Adds a delegate that will be used to configure a named HttpClient.

ConfigureHttpClient(IHttpClientBuilder, Action<IServiceProvider,HttpClient>) ConfigureHttpClient(IHttpClientBuilder, Action<IServiceProvider,HttpClient>) ConfigureHttpClient(IHttpClientBuilder, Action<IServiceProvider,HttpClient>) ConfigureHttpClient(IHttpClientBuilder, Action<IServiceProvider,HttpClient>)

Adds a delegate that will be used to configure a named 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

Parameters

configureClient
Action<IServiceProvider,HttpClient>

A delegate that is used to configure an HttpClient.

Returns

Remarks

The IServiceProvider provided to configureClient will be the same application's root service provider instance.

ConfigureHttpClient(IHttpClientBuilder, Action<HttpClient>) ConfigureHttpClient(IHttpClientBuilder, Action<HttpClient>) ConfigureHttpClient(IHttpClientBuilder, Action<HttpClient>) ConfigureHttpClient(IHttpClientBuilder, Action<HttpClient>)

Adds a delegate that will be used to configure a named 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

Parameters

configureClient
Action<HttpClient>

A delegate that is used to configure an HttpClient.

Returns

Applies to