SkillHandler Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- 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.