TypedRouteHandler<T> Delegate
Definition
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.
Represents a route that can be used to handle incoming requests.
public delegate System.Threading.Tasks.Task TypedRouteHandler<T>(ITurnContext<T> turnContext, ITurnState turnState, CancellationToken cancellationToken) where T : IActivity;
type TypedRouteHandler<'T (requires 'T :> IActivity)> = delegate of ITurnContext<'T (requires 'T :> IActivity)> * ITurnState * CancellationToken -> Task
Public Delegate Function TypedRouteHandler(Of T)(turnContext As ITurnContext(Of T), turnState As ITurnState, cancellationToken As CancellationToken) As Task
Type Parameters
- T
The type of activity that this route handler can process.
Parameters
- turnContext
- ITurnContext<T>
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.