Deli z drugimi prek


SocketsHttpHandlerBuilderExtensions Class

Definition

Extension methods to configure SocketsHttpHandler for a named HttpClient instances returned by IHttpClientFactory.

public ref class SocketsHttpHandlerBuilderExtensions abstract sealed
public static class SocketsHttpHandlerBuilderExtensions
type SocketsHttpHandlerBuilderExtensions = class
Public Module SocketsHttpHandlerBuilderExtensions
Inheritance
SocketsHttpHandlerBuilderExtensions

Methods

Configure(ISocketsHttpHandlerBuilder, Action<SocketsHttpHandler,IServiceProvider>)

Adds a delegate that will be used to configure the primary SocketsHttpHandler for a named HttpClient.

Configure(ISocketsHttpHandlerBuilder, IConfiguration)

Uses IConfiguration to configure the primary SocketsHttpHandler for a named HttpClient.

Applies to