Share via


TeamsActivityHandler.OnTeamsMessagingExtensionFetchTaskAsync Method

Definition

Invoked when a Messaging Extension Fetch activity is received from the connector.

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)

Parameters

turnContext
ITurnContext<IInvokeActivity>

A strongly-typed context object for this turn.

action
MessagingExtensionAction

The messaging extension action.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

The Messaging Extension Action Response for the action.

Applies to