Udostępnij za pośrednictwem


SocketsHttpHandlerBuilderExtensions.Configure Metoda

Definicja

Przeciążenia

Configure(ISocketsHttpHandlerBuilder, IConfiguration)

Używa IConfiguration metody do skonfigurowania podstawowego SocketsHttpHandler dla nazwy HttpClient.

Configure(ISocketsHttpHandlerBuilder, Action<SocketsHttpHandler,IServiceProvider>)

Dodaje delegata, który będzie używany do konfigurowania podstawowego SocketsHttpHandler elementu o nazwie HttpClient.

Configure(ISocketsHttpHandlerBuilder, IConfiguration)

Źródło:
SocketsHttpHandlerBuilderExtensions.cs
Źródło:
SocketsHttpHandlerBuilderExtensions.cs
Źródło:
SocketsHttpHandlerBuilderExtensions.cs
Źródło:
SocketsHttpHandlerBuilderExtensions.cs

Używa IConfiguration metody do skonfigurowania podstawowego SocketsHttpHandler dla nazwy 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

Konfiguracja zawierająca właściwości elementu SocketsHttpHandler.

Zwraca

Element ISocketsHttpHandlerBuilder , którego można użyć do skonfigurowania programu obsługi.

Atrybuty

Uwagi

Tylko właściwości SocketsHttpHandler typu bool, , intEnumlub TimeSpan są analizowane.

Wszystkie niedopasowane właściwości w programie IConfiguration są ignorowane.

Dotyczy

Configure(ISocketsHttpHandlerBuilder, Action<SocketsHttpHandler,IServiceProvider>)

Źródło:
SocketsHttpHandlerBuilderExtensions.cs
Źródło:
SocketsHttpHandlerBuilderExtensions.cs
Źródło:
SocketsHttpHandlerBuilderExtensions.cs
Źródło:
SocketsHttpHandlerBuilderExtensions.cs

Dodaje delegata, który będzie używany do konfigurowania podstawowego SocketsHttpHandler elementu o nazwie 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>

Delegat używany do modyfikowania pliku SocketsHttpHandler.

Zwraca

Element ISocketsHttpHandlerBuilder , którego można użyć do skonfigurowania programu obsługi.

Atrybuty

Dotyczy