RouteSelectorAsync Delegate
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 selecting whether a route handler should be triggered.
C#
public delegate System.Threading.Tasks.Task<bool> RouteSelectorAsync(ITurnContext turnContext, CancellationToken cancellationToken);
type RouteSelectorAsync = delegate of ITurnContext * CancellationToken -> Task<bool>
Public Delegate Function RouteSelectorAsync(turnContext As ITurnContext, cancellationToken As CancellationToken) As Task(Of Boolean)
- 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.
True if the route handler should be triggered. Otherwise, False.
Producto | Versiones |
---|---|
Microsoft Teams Framework .NET SDK | Latest |