SlackRouteHandler 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 Slack-aware route handler for an AgentApplication route.
public delegate System.Threading.Tasks.Task SlackRouteHandler(ISlackTurnContext turnContext, ITurnState turnState, CancellationToken cancellationToken);
type SlackRouteHandler = delegate of ISlackTurnContext * ITurnState * CancellationToken -> Task
Public Delegate Function SlackRouteHandler(turnContext As ISlackTurnContext, turnState As ITurnState, cancellationToken As CancellationToken) As Task
Parameters
- turnContext
- ISlackTurnContext
A Slack-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.