HttpConnectionFactory 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 HttpConnectionFactory 类的新实例。
public:
HttpConnectionFactory(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Http::Connections::Client::HttpConnectionOptions ^> ^ options, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HttpConnectionFactory (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory
Public Sub New (options As IOptions(Of HttpConnectionOptions), loggerFactory As ILoggerFactory)
参数
- options
- IOptions<HttpConnectionOptions>
连接选项。
- loggerFactory
- ILoggerFactory
记录器工厂。