FetchActionHandler Delegate
Definition
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.
Delegate for handling Message Extension fetch task events.
public delegate System.Threading.Tasks.Task<Microsoft.Teams.Api.MessageExtensions.ActionResponse> FetchActionHandler(ITeamsTurnContext turnContext, ITurnState turnState, Action action, CancellationToken cancellationToken);
type FetchActionHandler = delegate of ITeamsTurnContext * ITurnState * Action * CancellationToken -> Task<ActionResponse>
Public Delegate Function FetchActionHandler(turnContext As ITeamsTurnContext, turnState As ITurnState, action As Action, cancellationToken As CancellationToken) As Task(Of ActionResponse)
Parameters
- turnContext
- ITeamsTurnContext
The context for the current conversation turn.
- turnState
- ITurnState
The state object that stores arbitrary data for this turn.
- action
- Microsoft.Teams.Api.MessageExtensions.Action
The Microsoft.Teams.Api.MessageExtensions.Action data associated with the fetch task event.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Return Value
An instance of MessageExtensions.ActionResponse.