Compartilhar via


ChannelServiceHandler Construtor

Definição

Inicializa uma nova instância da ChannelServiceHandler classe usando um provedor de credenciais.

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)

Parâmetros

credentialProvider
ICredentialProvider

O provedor de credenciais.

authConfiguration
AuthenticationConfiguration

A configuração de autenticação.

channelProvider
IChannelProvider

O provedor de canais.

Exceções

throw ArgumentNullException.

Aplica-se a