HttpClientFactoryServiceCollectionExtensions Klass

Definition

Tilläggsmetoder för att konfigurera för IServiceCollectionIHttpClientFactory.

public ref class HttpClientFactoryServiceCollectionExtensions abstract sealed
public static class HttpClientFactoryServiceCollectionExtensions
type HttpClientFactoryServiceCollectionExtensions = class
Public Module HttpClientFactoryServiceCollectionExtensions
Arv
HttpClientFactoryServiceCollectionExtensions

Metoder

Name Description
AddHttpClient(IServiceCollection, String, Action<HttpClient>)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en med namnet HttpClient.

AddHttpClient(IServiceCollection, String, Action<IServiceProvider,HttpClient>)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en med namnet HttpClient.

AddHttpClient(IServiceCollection, String)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en med namnet HttpClient.

AddHttpClient(IServiceCollection)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection.

AddHttpClient<TClient,TImplementation>(IServiceCollection, Action<HttpClient>)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient . Klientnamnet anges till typnamnet TClientför .

AddHttpClient<TClient,TImplementation>(IServiceCollection, Action<IServiceProvider,HttpClient>)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient . Klientnamnet anges till typnamnet TClientför .

AddHttpClient<TClient,TImplementation>(IServiceCollection, Func<HttpClient,IServiceProvider,TImplementation>)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient .

AddHttpClient<TClient,TImplementation>(IServiceCollection, Func<HttpClient,TImplementation>)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient .

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Action<HttpClient>)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient .

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Action<IServiceProvider,HttpClient>)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient .

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Func<HttpClient,IServiceProvider,TImplementation>)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient .

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Func<HttpClient,TImplementation>)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient .

AddHttpClient<TClient,TImplementation>(IServiceCollection, String)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient .

AddHttpClient<TClient,TImplementation>(IServiceCollection)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient . Klientnamnet anges till typnamnet TClientför .

AddHttpClient<TClient>(IServiceCollection, Action<HttpClient>)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient . Klientnamnet anges till typnamnet TClientför .

AddHttpClient<TClient>(IServiceCollection, Action<IServiceProvider,HttpClient>)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient . Klientnamnet anges till typnamnet TClientför .

AddHttpClient<TClient>(IServiceCollection, String, Action<HttpClient>)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient .

AddHttpClient<TClient>(IServiceCollection, String, Action<IServiceProvider,HttpClient>)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient .

AddHttpClient<TClient>(IServiceCollection, String)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient .

AddHttpClient<TClient>(IServiceCollection)

Lägger till och IHttpClientFactory relaterade tjänster till IServiceCollection och konfigurerar en bindning mellan typen och en namngiven HttpClientTClient . Klientnamnet anges till typnamnet TClientför .

ConfigureHttpClientDefaults(IServiceCollection, Action<IHttpClientBuilder>)

Lägger till ett ombud som ska användas för att konfigurera alla HttpClient instanser.

Gäller för