SocketsHttpHandlerBuilder.ConfigureHandler 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
ConfigureHandler(Action<IServiceProvider,SocketsHttpHandler>) |
Adds a delegate that will execute the action on the primary handler. |
ConfigureHandler(Action<SocketsHttpHandler>) |
Adds a delegate that will execute the action on the primary handler. |
ConfigureHandler(Action<IServiceProvider,SocketsHttpHandler>)
Adds a delegate that will execute the action on the primary handler.
public:
Microsoft::Extensions::HttpClient::SocketHandling::SocketsHttpHandlerBuilder ^ ConfigureHandler(Action<IServiceProvider ^, System::Net::Http::SocketsHttpHandler ^> ^ configure);
public Microsoft.Extensions.HttpClient.SocketHandling.SocketsHttpHandlerBuilder ConfigureHandler(Action<IServiceProvider,System.Net.Http.SocketsHttpHandler> configure);
member this.ConfigureHandler : Action<IServiceProvider, System.Net.Http.SocketsHttpHandler> -> Microsoft.Extensions.HttpClient.SocketHandling.SocketsHttpHandlerBuilder
Public Function ConfigureHandler (configure As Action(Of IServiceProvider, SocketsHttpHandler)) As SocketsHttpHandlerBuilder
Parameters
- configure
- Action<IServiceProvider,SocketsHttpHandler>
The delegate to execute.
Returns
The SocketsHttpHandlerBuilder.
Applies to
ConfigureHandler(Action<SocketsHttpHandler>)
Adds a delegate that will execute the action on the primary handler.
public:
Microsoft::Extensions::HttpClient::SocketHandling::SocketsHttpHandlerBuilder ^ ConfigureHandler(Action<System::Net::Http::SocketsHttpHandler ^> ^ configure);
public Microsoft.Extensions.HttpClient.SocketHandling.SocketsHttpHandlerBuilder ConfigureHandler(Action<System.Net.Http.SocketsHttpHandler> configure);
member this.ConfigureHandler : Action<System.Net.Http.SocketsHttpHandler> -> Microsoft.Extensions.HttpClient.SocketHandling.SocketsHttpHandlerBuilder
Public Function ConfigureHandler (configure As Action(Of SocketsHttpHandler)) As SocketsHttpHandlerBuilder
Parameters
- configure
- Action<SocketsHttpHandler>
The delegate to execute.
Returns
The SocketsHttpHandlerBuilder.