Partilhar via


SocketsHttpHandlerBuilder.ConfigureHandler Method

Definition

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.

Applies to