Compartilhar via


FetchHandlerAsync Delegate

Definition

Function for handling Task Module fetch events.

public delegate System.Threading.Tasks.Task<Microsoft.Agents.Extensions.Teams.Models.TaskModuleResponse> FetchHandlerAsync(ITurnContext turnContext, ITurnState turnState, object data, CancellationToken cancellationToken);
type FetchHandlerAsync = delegate of ITurnContext * ITurnState * obj * CancellationToken -> Task<TaskModuleResponse>
Public Delegate Function FetchHandlerAsync(turnContext As ITurnContext, turnState As ITurnState, data As Object, cancellationToken As CancellationToken) As Task(Of TaskModuleResponse) 

Parameters

turnContext
ITurnContext

A strongly-typed context object for this turn.

turnState
ITurnState

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

data
Object

The 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 TaskModuleResponse.

Applies to