HttpClientFactoryServiceCollectionExtensions Clase

Definición

Métodos de extensión para configurar una instancia de IServiceCollection para IHttpClientFactory.

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

Métodos

AddHttpClient(IServiceCollection)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection.

AddHttpClient(IServiceCollection, String)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un objeto HttpClient con nombre.

AddHttpClient(IServiceCollection, String, Action<HttpClient>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un objeto HttpClient con nombre.

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

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un objeto HttpClient con nombre.

AddHttpClient<TClient,TImplementation>(IServiceCollection)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre. El nombre de cliente se establecerá en el nombre de tipo de TClient.

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

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre. El nombre de cliente se establecerá en el nombre de tipo de TClient.

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

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre. El nombre de cliente se establecerá en el nombre de tipo de TClient.

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

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.

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

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.

AddHttpClient<TClient,TImplementation>(IServiceCollection, String)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre. El nombre de cliente se establecerá en el nombre de tipo de TClient.

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

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.

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

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.

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

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.

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

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.

AddHttpClient<TClient>(IServiceCollection)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre. El nombre de cliente se establecerá en el nombre completo de TClient.

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

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre. El nombre de cliente se establecerá en el nombre de tipo de TClient.

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

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre. El nombre de cliente se establecerá en el nombre de tipo de TClient.

AddHttpClient<TClient>(IServiceCollection, String)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.

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

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.

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

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.

ConfigureHttpClientDefaults(IServiceCollection, Action<IHttpClientBuilder>)

Agrega un delegado que se usará para configurar todas las HttpClient instancias.

Se aplica a