SocketsHttpHandlerBuilderExtensions.Configure Metoda

Definice

Přetížení

Configure(ISocketsHttpHandlerBuilder, IConfiguration)

Používá IConfiguration ke konfiguraci primárního SocketsHttpHandler objektu s názvem HttpClient.

Configure(ISocketsHttpHandlerBuilder, Action<SocketsHttpHandler,IServiceProvider>)

Přidá delegáta, který se použije ke konfiguraci primárního SocketsHttpHandler pro pojmenovanou HttpClient.

Configure(ISocketsHttpHandlerBuilder, IConfiguration)

Zdroj:
SocketsHttpHandlerBuilderExtensions.cs
Zdroj:
SocketsHttpHandlerBuilderExtensions.cs
Zdroj:
SocketsHttpHandlerBuilderExtensions.cs
Zdroj:
SocketsHttpHandlerBuilderExtensions.cs

Používá IConfiguration ke konfiguraci primárního SocketsHttpHandler objektu s názvem 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

Parametry

configuration
IConfiguration

Konfigurace obsahující vlastnosti .SocketsHttpHandler

Návraty

Objekt ISocketsHttpHandlerBuilder , který lze použít ke konfiguraci obslužné rutiny.

Atributy

Poznámky

Analyzují se pouze vlastnosti SocketsHttpHandler typu bool, int, Enumnebo TimeSpan .

Všechny vlastnosti, které nejsou v IConfiguration souboru, se ignorují.

Platí pro

Configure(ISocketsHttpHandlerBuilder, Action<SocketsHttpHandler,IServiceProvider>)

Zdroj:
SocketsHttpHandlerBuilderExtensions.cs
Zdroj:
SocketsHttpHandlerBuilderExtensions.cs
Zdroj:
SocketsHttpHandlerBuilderExtensions.cs
Zdroj:
SocketsHttpHandlerBuilderExtensions.cs

Přidá delegáta, který se použije ke konfiguraci primárního SocketsHttpHandler pro pojmenovanou HttpClient.

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

Parametry

configure
Action<SocketsHttpHandler,IServiceProvider>

Delegát, který se používá k úpravě objektu SocketsHttpHandler.

Návraty

Objekt ISocketsHttpHandlerBuilder , který lze použít ke konfiguraci obslužné rutiny.

Atributy

Platí pro