SocketsHttpHandlerBuilderExtensions.Configure Metodo

Definizione

Overload

Configure(ISocketsHttpHandlerBuilder, IConfiguration)

IConfiguration Usa per configurare il valore primario SocketsHttpHandler per un oggetto denominato HttpClient.

Configure(ISocketsHttpHandlerBuilder, Action<SocketsHttpHandler,IServiceProvider>)

Aggiunge un delegato che verrà usato per configurare l'oggetto SocketsHttpHandler primario per un oggetto HttpClient denominato.

Configure(ISocketsHttpHandlerBuilder, IConfiguration)

Origine:
SocketsHttpHandlerBuilderExtensions.cs
Origine:
SocketsHttpHandlerBuilderExtensions.cs
Origine:
SocketsHttpHandlerBuilderExtensions.cs
Origine:
SocketsHttpHandlerBuilderExtensions.cs

IConfiguration Usa per configurare il valore primario SocketsHttpHandler per un oggetto denominato 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

Parametri

configuration
IConfiguration

Configurazione contenente proprietà di SocketsHttpHandler.

Restituisce

Oggetto ISocketsHttpHandlerBuilder che può essere usato per configurare il gestore.

Attributi

Commenti

Vengono analizzate solo le proprietà di SocketsHttpHandler tipo bool, int, Enumo TimeSpan .

Tutte le proprietà non corrispondenti in IConfiguration vengono ignorate.

Si applica a

Configure(ISocketsHttpHandlerBuilder, Action<SocketsHttpHandler,IServiceProvider>)

Origine:
SocketsHttpHandlerBuilderExtensions.cs
Origine:
SocketsHttpHandlerBuilderExtensions.cs
Origine:
SocketsHttpHandlerBuilderExtensions.cs
Origine:
SocketsHttpHandlerBuilderExtensions.cs

Aggiunge un delegato che verrà usato per configurare l'oggetto SocketsHttpHandler primario per un oggetto HttpClient denominato.

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

Parametri

configure
Action<SocketsHttpHandler,IServiceProvider>

Delegato utilizzato per modificare un SocketsHttpHandleroggetto .

Restituisce

Oggetto ISocketsHttpHandlerBuilder che può essere usato per configurare il gestore.

Attributi

Si applica a