語言

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。

適用於