HttpClientFactoryServiceCollectionExtensions Класс

Определение

Методы расширения для настройки IServiceCollection для IHttpClientFactory.Extensions methods to configure an IServiceCollection for IHttpClientFactory.

public ref class HttpClientFactoryServiceCollectionExtensions abstract sealed
public static class HttpClientFactoryServiceCollectionExtensions
type HttpClientFactoryServiceCollectionExtensions = class
Public Module HttpClientFactoryServiceCollectionExtensions
Наследование
HttpClientFactoryServiceCollectionExtensions

Методы

AddHttpClient(IServiceCollection)

Добавляет IHttpClientFactory и связанные службы в IServiceCollection.Adds the IHttpClientFactory and related services to the IServiceCollection.

AddHttpClient(IServiceCollection, String)

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает именованный HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a named HttpClient.

AddHttpClient(IServiceCollection, String, Action<HttpClient>)

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает именованный HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a named HttpClient.

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

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает именованный HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a named HttpClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection)

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. Для имени клиента будет задано имя типа TClient.The client name will be set to the type name of TClient.

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

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. Для имени клиента будет задано имя типа TClient.The client name will be set to the type name of TClient.

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

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. Для имени клиента будет задано имя типа TClient.The client name will be set to the type name of TClient.

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

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

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

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, String)

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. Для имени клиента будет задано имя типа TClient.The client name will be set to the type name of TClient.

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

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

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

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

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

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

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

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient>(IServiceCollection)

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. Для имени клиента будет задано полное имя TClient.The client name will be set to the full name of TClient.

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

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. Для имени клиента будет задано имя типа TClient.The client name will be set to the type name of TClient.

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

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. Для имени клиента будет задано имя типа TClient.The client name will be set to the type name of TClient.

AddHttpClient<TClient>(IServiceCollection, String)

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

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

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

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

Добавляет IHttpClientFactory и связанные службы в IServiceCollection и настраивает привязку между типом TClient и именованным HttpClient.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

Применяется к