Lingua

SkillHandler Costruttore

Definizione

Inizializza una nuova istanza della classe SkillHandler utilizzando un provider di credenziali.

public SkillHandler(Microsoft.Bot.Builder.BotAdapter adapter, Microsoft.Bot.Builder.IBot bot, Microsoft.Bot.Builder.Skills.SkillConversationIdFactoryBase conversationIdFactory, Microsoft.Bot.Connector.Authentication.ICredentialProvider credentialProvider, Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration authConfig, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Skills.SkillHandler : Microsoft.Bot.Builder.BotAdapter * Microsoft.Bot.Builder.IBot * Microsoft.Bot.Builder.Skills.SkillConversationIdFactoryBase * Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration * Microsoft.Bot.Connector.Authentication.IChannelProvider * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Skills.SkillHandler
Public Sub New (adapter As BotAdapter, bot As IBot, conversationIdFactory As SkillConversationIdFactoryBase, credentialProvider As ICredentialProvider, authConfig As AuthenticationConfiguration, Optional channelProvider As IChannelProvider = Nothing, Optional logger As ILogger = Nothing)

Parametri

adapter
BotAdapter

Istanza del BotAdapter che gestirà la richiesta.

bot
IBot

Istanza IBot.

conversationIdFactory
SkillConversationIdFactoryBase

Un SkillConversationIdFactoryBase per decomprimere l'ID conversazione ed eseguirne il mapping al bot chiamante.

credentialProvider
ICredentialProvider

Provider di credenziali.

authConfig
AuthenticationConfiguration

Configurazione dell'autenticazione.

channelProvider
IChannelProvider

Provider di canali.

logger
ILogger

L'implementazione ILogger che questo adattatore dovrebbe utilizzare.

Eccezioni

getta ArgumentNullException.

Commenti

Usa un MiddlewareSet oggetto per aggiungere più componenti middleware nel costruttore. Usa il metodo Use(IMiddleware) per aggiungere middleware aggiuntivo all'adattatore dopo la costruzione.

Si applica a