Language

AdaptiveCardActionHandler Delegate

Definition

Delegate for handling adaptive card action invoke activities.

public delegate System.Threading.Tasks.Task<Microsoft.Teams.Apps.InvokeResponse> AdaptiveCardActionHandler(Context<InvokeActivity<AdaptiveCardActionValue>> context, CancellationToken cancellationToken = default);
type AdaptiveCardActionHandler = delegate of Context<InvokeActivity<AdaptiveCardActionValue>> * CancellationToken -> Task<InvokeResponse>
Public Delegate Function AdaptiveCardActionHandler(context As Context(Of InvokeActivity(Of AdaptiveCardActionValue)), Optional cancellationToken As CancellationToken = Nothing) As Task(Of InvokeResponse) 

Parameters

context
Context<InvokeActivity<AdaptiveCardActionValue>>

The context for the invoke activity, providing access to the activity data and bot application.

cancellationToken
CancellationToken

A cancellation token that can be used to cancel the operation.

Return Value

A task that represents the asynchronous operation. The task result contains the invoke response.

Applies to