Share via


SkillHandler Constructor

Definition

Initializes a new instance of the SkillHandler class, using a credential provider.

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)

Parameters

adapter
BotAdapter

An instance of the BotAdapter that will handle the request.

bot
IBot

The IBot instance.

conversationIdFactory
SkillConversationIdFactoryBase

A SkillConversationIdFactoryBase to unpack the conversation ID and map it to the calling bot.

credentialProvider
ICredentialProvider

The credential provider.

authConfig
AuthenticationConfiguration

The authentication configuration.

channelProvider
IChannelProvider

The channel provider.

logger
ILogger

The ILogger implementation this adapter should use.

Exceptions

throw ArgumentNullException.

Remarks

Use a MiddlewareSet object to add multiple middleware components in the constructor. Use the Use(IMiddleware) method to add additional middleware to the adapter after construction.

Applies to