SocketsHttpHandlerBuilderExtensions.Configure Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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)
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
- builder
- ISocketsHttpHandlerBuilder
Oggetto ISocketsHttpHandlerBuilder.
- 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>)
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
- builder
- ISocketsHttpHandlerBuilder
Oggetto ISocketsHttpHandlerBuilder.
- configure
- Action<SocketsHttpHandler,IServiceProvider>
Delegato utilizzato per modificare un SocketsHttpHandleroggetto .
Restituisce
Oggetto ISocketsHttpHandlerBuilder che può essere usato per configurare il gestore.
- Attributi