HttpConnectionFactory 构造函数

定义

初始化 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

记录器工厂。

适用于