Udostępnij za pośrednictwem


SkillHandler Konstruktor

Definicja

Inicjuje SkillHandler nowe wystąpienie klasy przy użyciu dostawcy poświadczeń.

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)

Parametry

adapter
BotAdapter

Wystąpienie, BotAdapter które obsłuży żądanie.

bot
IBot

Wystąpienie elementu IBot.

conversationIdFactory
SkillConversationIdFactoryBase

A SkillConversationIdFactoryBase , aby rozpakować identyfikator konwersacji i zamapować go na bot wywołujący.

credentialProvider
ICredentialProvider

Dostawca poświadczeń.

authConfig
AuthenticationConfiguration

Konfiguracja uwierzytelniania.

channelProvider
IChannelProvider

Dostawca kanału.

logger
ILogger

Implementacja protokołu ILogger powinna być używana przez tę kartę.

Wyjątki

throw ArgumentNullException.

Uwagi

MiddlewareSet Użyj obiektu , aby dodać wiele składników oprogramowania pośredniczącego w konstruktorze. Użyj metody Use(IMiddleware), aby dodać dodatkowe oprogramowanie pośredniczące do adaptera po konstrukcji.

Dotyczy