DialogManager.OnTurnAsync(ITurnContext, CancellationToken) Method
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.
Runs dialog system in the context of an ITurnContext.
public System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogManagerResult> OnTurnAsync (Microsoft.Bot.Builder.ITurnContext context, System.Threading.CancellationToken cancellationToken = default);
member this.OnTurnAsync : Microsoft.Bot.Builder.ITurnContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogManagerResult>
Public Function OnTurnAsync (context As ITurnContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DialogManagerResult)
Parameters
- context
- ITurnContext
turn context.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
result of the running the logic against the activity.