ComponentDialog.ContinueDialogAsync(DialogContext, CancellationToken) Method

Definition

Called when the dialog is continued, where it is the active dialog and the user replies with a new activity.

public override System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult> ContinueDialogAsync (Microsoft.Bot.Builder.Dialogs.DialogContext outerDc, System.Threading.CancellationToken cancellationToken = default);
override this.ContinueDialogAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult>
Public Overrides Function ContinueDialogAsync (outerDc As DialogContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DialogTurnResult)

Parameters

outerDc
DialogContext

The parent DialogContext for the current turn of conversation.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A Task representing the asynchronous operation.

Remarks

If the task is successful, the result indicates whether the dialog is still active after the turn has been processed by the dialog. The result may also contain a return value.

If this method is *not* overridden, the component dialog calls the ContinueDialogAsync(CancellationToken) method on its inner dialog context. If the inner dialog stack is empty, the component dialog ends, and if a Result is available, the component dialog uses that as its return value.

Applies to

See also