Share via


AdaptiveDialog.EndCurrentActionAsync(ActionContext, CancellationToken) Method

Definition

Removes the current most action from the given ActionContext if there are any.

protected System.Threading.Tasks.Task<bool> EndCurrentActionAsync (Microsoft.Bot.Builder.Dialogs.Adaptive.ActionContext actionContext, System.Threading.CancellationToken cancellationToken = default);
member this.EndCurrentActionAsync : Microsoft.Bot.Builder.Dialogs.Adaptive.ActionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Protected Function EndCurrentActionAsync (actionContext As ActionContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

actionContext
ActionContext

The ActionContext for the current turn of conversation.

cancellationToken
CancellationToken

Optional, a CancellationToken that can be used by other objects.

Returns

A Task representing a boolean indicator for the result.

Applies to