Język

SkillHandler Konstruktor

Definicja

Inicjalizuje nową instancję SkillHandler klasy, korzystając z 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

Instancja BotAdapter , która obsługuje żądanie.

bot
IBot

Instancja IBot.

conversationIdFactory
SkillConversationIdFactoryBase

A do rozpakowania identyfikatora rozmowy i przypisania SkillConversationIdFactoryBase go do bota dzwoniącego.

credentialProvider
ICredentialProvider

Dostawca uprawnień.

authConfig
AuthenticationConfiguration

Konfiguracja uwierzytelniania.

channelProvider
IChannelProvider

Dostawca kanału.

logger
ILogger

Implementacja ILoggera powinna być używana przez ten adapter.

Wyjątki

throw ArgumentNullException.

Uwagi

Użyj obiektu MiddlewareSet , aby dodać wiele komponentów middleware do konstruktora. Użyj metody Use(IMiddleware), aby dodać dodatkowe middleware do adaptera po budowie konstrukcji.

Dotyczy