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