SkillHttpClient 构造函数

定义

初始化 SkillHttpClient 类的新实例。

public SkillHttpClient (System.Net.Http.HttpClient httpClient, Microsoft.Bot.Connector.Authentication.ICredentialProvider credentialProvider, Microsoft.Bot.Builder.Skills.SkillConversationIdFactoryBase conversationIdFactory, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Integration.AspNet.Core.Skills.SkillHttpClient : System.Net.Http.HttpClient * Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Builder.Skills.SkillConversationIdFactoryBase * Microsoft.Bot.Connector.Authentication.IChannelProvider * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Integration.AspNet.Core.Skills.SkillHttpClient
Public Sub New (httpClient As HttpClient, credentialProvider As ICredentialProvider, conversationIdFactory As SkillConversationIdFactoryBase, Optional channelProvider As IChannelProvider = Nothing, Optional logger As ILogger = Nothing)

参数

httpClient
HttpClient

HttpClient。

credentialProvider
ICredentialProvider

ICredentialProvider 的一个实例。

conversationIdFactory
SkillConversationIdFactoryBase

派生自 SkillConversationIdFactoryBase的类的实例。

channelProvider
IChannelProvider

IChannelProvider 的一个实例。

logger
ILogger

ILogger 的一个实例。

适用于