ITeamsCommandHandler.HandleCommandAsync Method
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.
Handles the command.
public System.Threading.Tasks.Task<Microsoft.TeamsFx.Conversation.ICommandResponse> HandleCommandAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.TeamsFx.Conversation.CommandMessage message, System.Threading.CancellationToken cancellationToken = default);
abstract member HandleCommandAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.TeamsFx.Conversation.CommandMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamsFx.Conversation.ICommandResponse>
Public Function HandleCommandAsync (turnContext As ITurnContext, message As CommandMessage, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ICommandResponse)
Parameters
- turnContext
- ITurnContext
The turn context.
- message
- CommandMessage
The command message.
- cancellationToken
- CancellationToken
The cancellation token.