Sprache

SkillHandler Konstruktor

Definition

Initialisiert eine neue Instanz der SkillHandler Klasse mithilfe eines Anmeldeinformationsanbieters.

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)

Parameter

adapter
BotAdapter

Eine Instanz der BotAdapter, die die Anforderung verarbeitet.

bot
IBot

Die IBot-Instanz.

conversationIdFactory
SkillConversationIdFactoryBase

Ein SkillConversationIdFactoryBase, um die Unterhaltungs-ID zu entpacken und dem aufrufenden Bot zuzuordnen.

credentialProvider
ICredentialProvider

Der Anmeldeinformationsanbieter.

authConfig
AuthenticationConfiguration

Die Authentifizierungskonfiguration.

channelProvider
IChannelProvider

Der Kanalanbieter.

logger
ILogger

Die ILogger-Implementierung, die dieser Adapter verwenden sollte.

Ausnahmen

Werfe ArgumentNullException.

Hinweise

Verwenden Sie ein MiddlewareSet Objekt, um mehrere Middleware-Komponenten im Konstruktor hinzuzufügen. Verwenden Sie die Use()-Methode,IMiddleware um nach der Konstruktion zusätzliche Middleware zum Adapter hinzuzufügen.

Gilt für: