Partilhar via


SocketsHttpHandlerBuilder.ConfigureOptions Method

Definition

Overloads

ConfigureOptions(IConfigurationSection)

Adds a delegate that will set SocketsHttpHandler as the primary HttpMessageHandler for a named Microsoft.Extensions.HttpClient and will use IConfigurationSection to configure it.

ConfigureOptions(Action<SocketsHttpHandlerOptions>)

Adds a delegate that will set SocketsHttpHandler as the primary HttpMessageHandler for a named Microsoft.Extensions.HttpClient and will use the delegate to configure it.

ConfigureOptions(IConfigurationSection)

Adds a delegate that will set SocketsHttpHandler as the primary HttpMessageHandler for a named Microsoft.Extensions.HttpClient and will use IConfigurationSection to configure it.

public:
 Microsoft::Extensions::HttpClient::SocketHandling::SocketsHttpHandlerBuilder ^ ConfigureOptions(Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public Microsoft.Extensions.HttpClient.SocketHandling.SocketsHttpHandlerBuilder ConfigureOptions(Microsoft.Extensions.Configuration.IConfigurationSection section);
member this.ConfigureOptions : Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.HttpClient.SocketHandling.SocketsHttpHandlerBuilder
Public Function ConfigureOptions (section As IConfigurationSection) As SocketsHttpHandlerBuilder

Parameters

Returns

The SocketsHttpHandlerBuilder.

Applies to

ConfigureOptions(Action<SocketsHttpHandlerOptions>)

Adds a delegate that will set SocketsHttpHandler as the primary HttpMessageHandler for a named Microsoft.Extensions.HttpClient and will use the delegate to configure it.

public:
 Microsoft::Extensions::HttpClient::SocketHandling::SocketsHttpHandlerBuilder ^ ConfigureOptions(Action<Microsoft::Extensions::HttpClient::SocketHandling::SocketsHttpHandlerOptions ^> ^ configure);
public Microsoft.Extensions.HttpClient.SocketHandling.SocketsHttpHandlerBuilder ConfigureOptions(Action<Microsoft.Extensions.HttpClient.SocketHandling.SocketsHttpHandlerOptions> configure);
member this.ConfigureOptions : Action<Microsoft.Extensions.HttpClient.SocketHandling.SocketsHttpHandlerOptions> -> Microsoft.Extensions.HttpClient.SocketHandling.SocketsHttpHandlerBuilder
Public Function ConfigureOptions (configure As Action(Of SocketsHttpHandlerOptions)) As SocketsHttpHandlerBuilder

Parameters

Returns

The SocketsHttpHandlerBuilder.

Applies to