Partager via


SocketsHttpHandlerBuilderExtensions.Configure Méthode

Définition

Surcharges

Configure(ISocketsHttpHandlerBuilder, IConfiguration)

Utilise IConfiguration pour configurer le principal SocketsHttpHandler pour un nommé HttpClient.

Configure(ISocketsHttpHandlerBuilder, Action<SocketsHttpHandler,IServiceProvider>)

Ajoute un délégué qui sera utilisé afin de configurer le SocketsHttpHandler principal pour un HttpClient nommé.

Configure(ISocketsHttpHandlerBuilder, IConfiguration)

Source:
SocketsHttpHandlerBuilderExtensions.cs
Source:
SocketsHttpHandlerBuilderExtensions.cs
Source:
SocketsHttpHandlerBuilderExtensions.cs
Source:
SocketsHttpHandlerBuilderExtensions.cs

Utilise IConfiguration pour configurer le principal SocketsHttpHandler pour un nommé 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

Paramètres

configuration
IConfiguration

Configuration contenant les propriétés de SocketsHttpHandler.

Retours

ISocketsHttpHandlerBuilder qui peut être utilisé pour configurer le gestionnaire.

Attributs

Remarques

Seules les propriétés de SocketsHttpHandler type bool, int, Enumou TimeSpan sont analysées.

Toutes les propriétés sans correspondance dans IConfiguration sont ignorées.

S’applique à

Configure(ISocketsHttpHandlerBuilder, Action<SocketsHttpHandler,IServiceProvider>)

Source:
SocketsHttpHandlerBuilderExtensions.cs
Source:
SocketsHttpHandlerBuilderExtensions.cs
Source:
SocketsHttpHandlerBuilderExtensions.cs
Source:
SocketsHttpHandlerBuilderExtensions.cs

Ajoute un délégué qui sera utilisé afin de configurer le SocketsHttpHandler principal pour un HttpClient nommé.

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

Paramètres

configure
Action<SocketsHttpHandler,IServiceProvider>

Délégué utilisé pour modifier un SocketsHttpHandler.

Retours

ISocketsHttpHandlerBuilder qui peut être utilisé pour configurer le gestionnaire.

Attributs

S’applique à