Share via


DialogManager.OnTurnAsync(ITurnContext, CancellationToken) Method

Definition

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.

Applies to