SocketsHttpHandlerBuilderExtensions.Configure Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
Configure(ISocketsHttpHandlerBuilder, IConfiguration) |
IConfiguration Usa para configurar o primário SocketsHttpHandler para um chamado HttpClient. |
Configure(ISocketsHttpHandlerBuilder, Action<SocketsHttpHandler,IServiceProvider>) |
Adiciona um delegado que será usado para configurar o SocketsHttpHandler primário para um HttpClient nomeado. |
Configure(ISocketsHttpHandlerBuilder, IConfiguration)
IConfiguration Usa para configurar o primário SocketsHttpHandler para um chamado HttpClient.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::ISocketsHttpHandlerBuilder ^ Configure(Microsoft::Extensions::DependencyInjection::ISocketsHttpHandlerBuilder ^ builder, Microsoft::Extensions::Configuration::IConfiguration ^ configuration);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder Configure (this Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder builder, Microsoft.Extensions.Configuration.IConfiguration configuration);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Configure : Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder
<Extension()>
Public Function Configure (builder As ISocketsHttpHandlerBuilder, configuration As IConfiguration) As ISocketsHttpHandlerBuilder
Parâmetros
- configuration
- IConfiguration
Configuração que contém propriedades de SocketsHttpHandler.
Retornos
Um ISocketsHttpHandlerBuilder que pode ser usado para configurar o manipulador.
- Atributos
Comentários
Somente as propriedades do SocketsHttpHandler tipo bool
, int
, Enumou TimeSpan são analisadas.
Todas as propriedades sem correspondência em IConfiguration são ignoradas.
Aplica-se a
Configure(ISocketsHttpHandlerBuilder, Action<SocketsHttpHandler,IServiceProvider>)
Adiciona um delegado que será usado para configurar o SocketsHttpHandler primário para um HttpClient nomeado.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::ISocketsHttpHandlerBuilder ^ Configure(Microsoft::Extensions::DependencyInjection::ISocketsHttpHandlerBuilder ^ builder, Action<System::Net::Http::SocketsHttpHandler ^, IServiceProvider ^> ^ configure);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder Configure (this Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder builder, Action<System.Net.Http.SocketsHttpHandler,IServiceProvider> configure);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Configure : Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder * Action<System.Net.Http.SocketsHttpHandler, IServiceProvider> -> Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder
<Extension()>
Public Function Configure (builder As ISocketsHttpHandlerBuilder, configure As Action(Of SocketsHttpHandler, IServiceProvider)) As ISocketsHttpHandlerBuilder
Parâmetros
- configure
- Action<SocketsHttpHandler,IServiceProvider>
Um delegado que é usado para modificar um SocketsHttpHandler.
Retornos
Um ISocketsHttpHandlerBuilder que pode ser usado para configurar o manipulador.
- Atributos