CardButtonClickedHandler<TState> Delegate

Definition

Function for handling Message Extension clicking card button events.

public delegate System.Threading.Tasks.Task CardButtonClickedHandler<TState>(ITurnContext turnContext, TState turnState, object cardData, CancellationToken cancellationToken) where TState : TurnState;
type CardButtonClickedHandler<'State (requires 'State :> TurnState)> = delegate of ITurnContext * 'State * obj * CancellationToken -> Task
Public Delegate Function CardButtonClickedHandler(Of TState)(turnContext As ITurnContext, turnState As TState, cardData As Object, cancellationToken As CancellationToken) As Task 

Type Parameters

TState

Type of the turn state. This allows for strongly typed access to the turn state.

Parameters

turnContext
ITurnContext

A strongly-typed context object for this turn.

turnState
TState

The turn state object that stores arbitrary data for this turn.

cardData
Object

The card data.

cancellationToken
CancellationToken

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

Return Value

A task that represents the work queued to execute.

Applies to