TeamsActivityHandler.OnTeamsO365ConnectorCardActionAsync Method

Definition

Invoked when a O365 Connector Card Action activity is received from the connector.

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

Parameters

turnContext
ITurnContext<IInvokeActivity>

A strongly-typed context object for this turn.

query
O365ConnectorCardActionQuery

The O365 connector card HttpPOST invoke query.

cancellationToken
CancellationToken

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

Returns

A task that represents the work queued to execute.

Applies to