Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

TeamsActivityHandler.OnTeamsMessagingExtensionFetchTaskAsync Method

Definition

Namespace:
Microsoft.Bot.Builder.Teams
Assembly:
Microsoft.Bot.Builder.dll
Package:
Microsoft.Bot.Builder v4.22.7

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.

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