HttpClientFactoryServiceCollectionExtensions.AddHttpClient Método

Definição

Sobrecargas

AddHttpClient(IServiceCollection)

Adiciona o IHttpClientFactory e os serviços relacionados à IServiceCollection.

AddHttpClient(IServiceCollection, String)

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura um HttpClient nomeado.

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

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura um HttpClient nomeado.

AddHttpClient(IServiceCollection, String, Action<HttpClient>)

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura um HttpClient nomeado.

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

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

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

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

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

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

AddHttpClient<TClient,TImplementation>(IServiceCollection, String)

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado. O nome do cliente será definido como o nome do tipo de TClient.

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

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

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

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

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

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado. O nome do cliente será definido como o nome do tipo de TClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection)

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado. O nome do cliente será definido como o nome do tipo de TClient.

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

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

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

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado. O nome do cliente será definido como o nome do tipo de TClient.

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

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

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

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

AddHttpClient<TClient>(IServiceCollection, String)

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

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

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado. O nome do cliente será definido como o nome do tipo de TClient.

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

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado. O nome do cliente será definido como o nome do tipo de TClient.

AddHttpClient<TClient>(IServiceCollection)

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado. O nome do cliente será definido como o nome completo de TClient.

AddHttpClient(IServiceCollection)

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados à IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpClient (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpClient (services As IServiceCollection) As IServiceCollection

Parâmetros

Retornos

O IServiceCollection.

Aplica-se a

AddHttpClient(IServiceCollection, String)

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura um HttpClient nomeado.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name);
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function AddHttpClient (services As IServiceCollection, name As String) As IHttpClientBuilder

Parâmetros

name
String

O nome lógico do HttpClient a ser configurado.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

Use DefaultName como o nome para configurar o cliente padrão.

Aplica-se a

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

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura um HttpClient nomeado.

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

Parâmetros

name
String

O nome lógico do HttpClient a ser configurado.

configureClient
Action<IServiceProvider,HttpClient>

Um delegado usado para configurar um HttpClient.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

Use DefaultName como o nome para configurar o cliente padrão.

Aplica-se a

AddHttpClient(IServiceCollection, String, Action<HttpClient>)

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura um HttpClient nomeado.

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

Parâmetros

name
String

O nome lógico do HttpClient a ser configurado.

configureClient
Action<HttpClient>

Um delegado usado para configurar um HttpClient.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

Use DefaultName como o nome para configurar o cliente padrão.

Aplica-se a

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

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

public:
generic <typename TClient, typename TImplementation>
 where TClient : class where TImplementation : class, TClient[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Func<System::Net::Http::HttpClient ^, IServiceProvider ^, TImplementation> ^ factory);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient,TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, Func<System.Net.Http.HttpClient,IServiceProvider,TImplementation> factory) where TClient : class where TImplementation : class, TClient;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Func<System.Net.Http.HttpClient, IServiceProvider, #'Client> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class, TImplementation As Class) (services As IServiceCollection, name As String, factory As Func(Of HttpClient, IServiceProvider, TImplementation)) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

TImplementation

O tipo de implementação do cliente tipado.

Parâmetros

name
String

O nome lógico do HttpClient a ser configurado.

factory
Func<HttpClient,IServiceProvider,TImplementation>

Um delegado usado para criar uma instância de TClient.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Aplica-se a

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

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

public:
generic <typename TClient, typename TImplementation>
 where TClient : class where TImplementation : class, TClient[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Action<System::Net::Http::HttpClient ^> ^ configureClient);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient,TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, Action<System.Net.Http.HttpClient> configureClient) where TClient : class where TImplementation : class, TClient;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Action<System.Net.Http.HttpClient> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class, TImplementation As Class) (services As IServiceCollection, name As String, configureClient As Action(Of HttpClient)) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

TImplementation

O tipo de implementação do cliente tipado. O tipo especificado será instanciado pelo ITypedHttpClientFactory<TClient>.

Parâmetros

name
String

O nome lógico do HttpClient a ser configurado.

configureClient
Action<HttpClient>

Um delegado usado para configurar um HttpClient.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Use DefaultName como o nome para configurar o cliente padrão.

Aplica-se a

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

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

public:
generic <typename TClient, typename TImplementation>
 where TClient : class where TImplementation : class, TClient[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Action<IServiceProvider ^, System::Net::Http::HttpClient ^> ^ configureClient);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient,TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, Action<IServiceProvider,System.Net.Http.HttpClient> configureClient) where TClient : class where TImplementation : class, TClient;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Action<IServiceProvider, System.Net.Http.HttpClient> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class, TImplementation As Class) (services As IServiceCollection, name As String, configureClient As Action(Of IServiceProvider, HttpClient)) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

TImplementation

O tipo de implementação do cliente tipado. O tipo especificado será instanciado pelo ITypedHttpClientFactory<TClient>.

Parâmetros

name
String

O nome lógico do HttpClient a ser configurado.

configureClient
Action<IServiceProvider,HttpClient>

Um delegado usado para configurar um HttpClient.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Use DefaultName como o nome para configurar o cliente padrão.

Aplica-se a

AddHttpClient<TClient,TImplementation>(IServiceCollection, String)

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado. O nome do cliente será definido como o nome do tipo de TClient.

public:
generic <typename TClient, typename TImplementation>
 where TClient : class where TImplementation : class, TClient[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient,TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name) where TClient : class where TImplementation : class, TClient;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class, TImplementation As Class) (services As IServiceCollection, name As String) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

TImplementation

O tipo de implementação do cliente tipado. O tipo especificado será instanciado pelo ITypedHttpClientFactory<TClient>.

Parâmetros

name
String

O nome lógico do HttpClient a ser configurado.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Use DefaultName como o nome para configurar o cliente padrão.

Aplica-se a

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

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

public:
generic <typename TClient, typename TImplementation>
 where TClient : class where TImplementation : class, TClient[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Func<System::Net::Http::HttpClient ^, TImplementation> ^ factory);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient,TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Func<System.Net.Http.HttpClient,TImplementation> factory) where TClient : class where TImplementation : class, TClient;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * Func<System.Net.Http.HttpClient, #'Client> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class, TImplementation As Class) (services As IServiceCollection, factory As Func(Of HttpClient, TImplementation)) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

TImplementation

O tipo de implementação do cliente tipado.

Parâmetros

factory
Func<HttpClient,TImplementation>

Um delegado usado para criar uma instância de TClient.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Aplica-se a

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

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

public:
generic <typename TClient, typename TImplementation>
 where TClient : class where TImplementation : class, TClient[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Func<System::Net::Http::HttpClient ^, IServiceProvider ^, TImplementation> ^ factory);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient,TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Func<System.Net.Http.HttpClient,IServiceProvider,TImplementation> factory) where TClient : class where TImplementation : class, TClient;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * Func<System.Net.Http.HttpClient, IServiceProvider, #'Client> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class, TImplementation As Class) (services As IServiceCollection, factory As Func(Of HttpClient, IServiceProvider, TImplementation)) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

TImplementation

O tipo de implementação do cliente tipado.

Parâmetros

factory
Func<HttpClient,IServiceProvider,TImplementation>

Um delegado usado para criar uma instância de TClient.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Aplica-se a

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

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado. O nome do cliente será definido como o nome do tipo de TClient.

public:
generic <typename TClient, typename TImplementation>
 where TClient : class where TImplementation : class, TClient[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<System::Net::Http::HttpClient ^> ^ configureClient);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient,TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<System.Net.Http.HttpClient> configureClient) where TClient : class where TImplementation : class, TClient;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<System.Net.Http.HttpClient> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class, TImplementation As Class) (services As IServiceCollection, configureClient As Action(Of HttpClient)) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

TImplementation

O tipo de implementação do cliente tipado. O tipo especificado será instanciado pelo ITypedHttpClientFactory<TClient>.

Parâmetros

configureClient
Action<HttpClient>

Um delegado usado para configurar um HttpClient.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Aplica-se a

AddHttpClient<TClient,TImplementation>(IServiceCollection)

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado. O nome do cliente será definido como o nome do tipo de TClient.

public:
generic <typename TClient, typename TImplementation>
 where TClient : class where TImplementation : class, TClient[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient,TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TClient : class where TImplementation : class, TClient;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class, TImplementation As Class) (services As IServiceCollection) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

TImplementation

O tipo de implementação do cliente tipado. O tipo especificado será instanciado pelo ITypedHttpClientFactory<TClient>.

Parâmetros

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Aplica-se a

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

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

public:
generic <typename TClient, typename TImplementation>
 where TClient : class where TImplementation : class, TClient[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Func<System::Net::Http::HttpClient ^, TImplementation> ^ factory);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient,TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, Func<System.Net.Http.HttpClient,TImplementation> factory) where TClient : class where TImplementation : class, TClient;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Func<System.Net.Http.HttpClient, #'Client> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class, TImplementation As Class) (services As IServiceCollection, name As String, factory As Func(Of HttpClient, TImplementation)) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

TImplementation

O tipo de implementação do cliente tipado.

Parâmetros

name
String

O nome lógico do HttpClient a ser configurado.

factory
Func<HttpClient,TImplementation>

Um delegado usado para criar uma instância de TClient.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Aplica-se a

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

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado. O nome do cliente será definido como o nome do tipo de TClient.

public:
generic <typename TClient, typename TImplementation>
 where TClient : class where TImplementation : class, TClient[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<IServiceProvider ^, System::Net::Http::HttpClient ^> ^ configureClient);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient,TImplementation> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<IServiceProvider,System.Net.Http.HttpClient> configureClient) where TClient : class where TImplementation : class, TClient;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<IServiceProvider, System.Net.Http.HttpClient> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class, TImplementation As Class) (services As IServiceCollection, configureClient As Action(Of IServiceProvider, HttpClient)) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

TImplementation

O tipo de implementação do cliente tipado. O tipo especificado será instanciado pelo ITypedHttpClientFactory<TClient>.

Parâmetros

configureClient
Action<IServiceProvider,HttpClient>

Um delegado usado para configurar um HttpClient.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Aplica-se a

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

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

public:
generic <typename TClient>
 where TClient : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Action<System::Net::Http::HttpClient ^> ^ configureClient);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, Action<System.Net.Http.HttpClient> configureClient) where TClient : class;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Action<System.Net.Http.HttpClient> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class) (services As IServiceCollection, name As String, configureClient As Action(Of HttpClient)) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

Parâmetros

name
String

O nome lógico do HttpClient a ser configurado.

configureClient
Action<HttpClient>

Um delegado usado para configurar um HttpClient.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Use DefaultName como o nome para configurar o cliente padrão.

Aplica-se a

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

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

public:
generic <typename TClient>
 where TClient : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Action<IServiceProvider ^, System::Net::Http::HttpClient ^> ^ configureClient);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, Action<IServiceProvider,System.Net.Http.HttpClient> configureClient) where TClient : class;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Action<IServiceProvider, System.Net.Http.HttpClient> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class) (services As IServiceCollection, name As String, configureClient As Action(Of IServiceProvider, HttpClient)) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

Parâmetros

name
String

O nome lógico do HttpClient a ser configurado.

configureClient
Action<IServiceProvider,HttpClient>

Um delegado usado para configurar um HttpClient.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Use DefaultName como o nome para configurar o cliente padrão.

Aplica-se a

AddHttpClient<TClient>(IServiceCollection, String)

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado.

public:
generic <typename TClient>
 where TClient : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name) where TClient : class;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class) (services As IServiceCollection, name As String) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

Parâmetros

name
String

O nome lógico do HttpClient a ser configurado.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Use DefaultName como o nome para configurar o cliente padrão.

Aplica-se a

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

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado. O nome do cliente será definido como o nome do tipo de TClient.

public:
generic <typename TClient>
 where TClient : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<System::Net::Http::HttpClient ^> ^ configureClient);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<System.Net.Http.HttpClient> configureClient) where TClient : class;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<System.Net.Http.HttpClient> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class) (services As IServiceCollection, configureClient As Action(Of HttpClient)) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

Parâmetros

configureClient
Action<HttpClient>

Um delegado usado para configurar um HttpClient.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Aplica-se a

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

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado. O nome do cliente será definido como o nome do tipo de TClient.

public:
generic <typename TClient>
 where TClient : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<IServiceProvider ^, System::Net::Http::HttpClient ^> ^ configureClient);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<IServiceProvider,System.Net.Http.HttpClient> configureClient) where TClient : class;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<IServiceProvider, System.Net.Http.HttpClient> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class) (services As IServiceCollection, configureClient As Action(Of IServiceProvider, HttpClient)) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

Parâmetros

configureClient
Action<IServiceProvider,HttpClient>

Um delegado usado para configurar um HttpClient.

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Aplica-se a

AddHttpClient<TClient>(IServiceCollection)

Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs
Origem:
HttpClientFactoryServiceCollectionExtensions.cs

Adiciona o IHttpClientFactory e os serviços relacionados ao IServiceCollection e configura uma associação entre o tipo de TClient e um HttpClient nomeado. O nome do cliente será definido como o nome completo de TClient.

public:
generic <typename TClient>
 where TClient : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient<TClient> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TClient : class;
static member AddHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder (requires 'Client : null)
<Extension()>
Public Function AddHttpClient(Of TClient As Class) (services As IServiceCollection) As IHttpClientBuilder

Parâmetros de tipo

TClient

O tipo do cliente tipado. O tipo especificado será registrado na coleção de serviços como um serviço transitório. Consulte ITypedHttpClientFactory<TClient> para obter mais detalhes sobre a criação de clientes tipado.

Parâmetros

Retornos

Um IHttpClientBuilder que pode ser usado para configurar o cliente.

Comentários

HttpClientas instâncias que aplicam a configuração fornecida podem ser recuperadas usando CreateClient(String) e fornecendo o nome correspondente.

TClientinstâncias construídas com o apropriado HttpClient podem ser recuperadas de GetService(Type) (e métodos relacionados) fornecendo TClient como o tipo de serviço.

Aplica-se a