ChannelServiceHandler 构造函数

定义

使用凭据提供程序初始化 类的新实例 ChannelServiceHandler

public ChannelServiceHandler (Microsoft.Bot.Connector.Authentication.ICredentialProvider credentialProvider, Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration authConfiguration, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider = default);
new Microsoft.Bot.Builder.ChannelServiceHandler : Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration * Microsoft.Bot.Connector.Authentication.IChannelProvider -> Microsoft.Bot.Builder.ChannelServiceHandler
Public Sub New (credentialProvider As ICredentialProvider, authConfiguration As AuthenticationConfiguration, Optional channelProvider As IChannelProvider = Nothing)

参数

credentialProvider
ICredentialProvider

凭据提供程序。

authConfiguration
AuthenticationConfiguration

身份验证配置。

channelProvider
IChannelProvider

通道提供程序。

例外

throw ArgumentNullException。

适用于