RouteSelectorAsync Delegate

Definition

Function for selecting whether a route handler should be triggered.

C#
public delegate System.Threading.Tasks.Task<bool> RouteSelectorAsync(ITurnContext turnContext, CancellationToken cancellationToken);

Parameters

turnContext
ITurnContext

Context for the current turn of conversation with the user.

cancellationToken
CancellationToken

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

Return Value

True if the route handler should be triggered. Otherwise, False.

Applies to

Producto Versiones
Microsoft Teams Framework .NET SDK Latest