共用方式為


SocketsHttpHandlerBuilderExtensions 類別

定義

提供擴充方法,以針對 所IHttpClientFactory傳回的具名HttpClient實例進行設定SocketsHttpHandler

public ref class SocketsHttpHandlerBuilderExtensions abstract sealed
public static class SocketsHttpHandlerBuilderExtensions
type SocketsHttpHandlerBuilderExtensions = class
Public Module SocketsHttpHandlerBuilderExtensions
繼承
SocketsHttpHandlerBuilderExtensions

方法

Configure(ISocketsHttpHandlerBuilder, Action<SocketsHttpHandler,IServiceProvider>)

新增將用來設定具名 HttpClient 之主要 SocketsHttpHandler 的委派。

Configure(ISocketsHttpHandlerBuilder, IConfiguration)

使用 IConfiguration 來設定具名 HttpClient的主要 SocketsHttpHandler

適用於