ภาษา

ActionExecuteValueHandler Delegate

Definition

Function for handling Adaptive Card Action.Execute events.

public delegate System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.AdaptiveCardInvokeResponse> ActionExecuteValueHandler(ITurnContext turnContext, ITurnState turnState, AdaptiveCardInvokeValue value, CancellationToken cancellationToken);
type ActionExecuteValueHandler = delegate of ITurnContext * ITurnState * AdaptiveCardInvokeValue * CancellationToken -> Task<AdaptiveCardInvokeResponse>
Public Delegate Function ActionExecuteValueHandler(turnContext As ITurnContext, turnState As ITurnState, value As AdaptiveCardInvokeValue, cancellationToken As CancellationToken) As Task(Of AdaptiveCardInvokeResponse) 

Parameters

turnContext
ITurnContext

A strongly-typed context object for this turn.

turnState
ITurnState

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

value
AdaptiveCardInvokeValue

The value associated with the action.

cancellationToken
CancellationToken

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

Return Value

An instance of AdaptiveCardInvokeResponse, which can be created using AdaptiveCardInvokeResponseFactory.

Applies to