Language

TeamsRouteHandler Delegate

Definition

Represents a Teams-aware route handler for an AgentApplication route.

public delegate System.Threading.Tasks.Task TeamsRouteHandler(ITeamsTurnContext turnContext, ITurnState turnState, CancellationToken cancellationToken);
type TeamsRouteHandler = delegate of ITeamsTurnContext * ITurnState * CancellationToken -> Task
Public Delegate Function TeamsRouteHandler(turnContext As ITeamsTurnContext, turnState As ITurnState, cancellationToken As CancellationToken) As Task 

Parameters

turnContext
ITeamsTurnContext

A Teams-specific turn context for the current turn.

turnState
ITurnState

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

cancellationToken
CancellationToken

A cancellation token that can be used to observe cancellation.

Return Value

A task that represents the asynchronous handler operation.

Applies to