RouteHandler Delegate

Definition

The common route handler. Function for handling an incoming request.

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

Parameters

turnContext
ITurnContext

A strongly-typed context object for this turn.

turnState
ITurnState

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

cancellationToken
CancellationToken

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

Return Value

Applies to