TeamsActivityHandler.OnTeamsMessagingExtensionFetchTaskAsync 方法

定义

从连接器接收消息传送扩展提取活动时调用。

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionActionResponse> OnTeamsMessagingExtensionFetchTaskAsync (Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> turnContext, Microsoft.Bot.Schema.Teams.MessagingExtensionAction action, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsMessagingExtensionFetchTaskAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.MessagingExtensionAction * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionActionResponse>
override this.OnTeamsMessagingExtensionFetchTaskAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.MessagingExtensionAction * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionActionResponse>
Protected Overridable Function OnTeamsMessagingExtensionFetchTaskAsync (turnContext As ITurnContext(Of IInvokeActivity), action As MessagingExtensionAction, cancellationToken As CancellationToken) As Task(Of MessagingExtensionActionResponse)

参数

turnContext
ITurnContext<IInvokeActivity>

此轮次的强类型上下文对象。

action
MessagingExtensionAction

消息传递扩展操作。

cancellationToken
CancellationToken

可由其他对象或线程用以接收取消通知的取消标记。

返回

操作的消息传递扩展操作响应。

适用于