SocketsHttpHandlerBuilder.ConfigureOptions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- section
- IConfigurationSection
Configuration for SocketsHttpHandlerOptions.
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
- configure
- Action<SocketsHttpHandlerOptions>
Configuration for SocketsHttpHandlerOptions.
Returns
The SocketsHttpHandlerBuilder.