Språk

SkillHandler Konstruktor

Definition

Initierar en ny instans av SkillHandler klassen med hjälp av en credential-leverantör.

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)

Parametrar

adapter
BotAdapter

En instans av den BotAdapter som hanterar förfrågan.

bot
IBot

Instansen IBot .

conversationIdFactory
SkillConversationIdFactoryBase

A SkillConversationIdFactoryBase för att packa upp konversations-ID:t och koppla det till den uppringande boten.

credentialProvider
ICredentialProvider

Legitimationsleverantören.

authConfig
AuthenticationConfiguration

Autentiseringskonfigurationen.

channelProvider
IChannelProvider

Kanalleverantören.

logger
ILogger

Den ILogger-implementation som denna adapter bör använda.

Undantag

Kasta ArgumentNullException.

Kommentarer

Använd ett MiddlewareSet objekt för att lägga till flera middleware-komponenter i konstruktören. Använd Use(IMiddleware)-metoden för att lägga till ytterligare middleware på adaptern efter att du har byggt.

Gäller för