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数据库。

适用于