Share via


ComponentDialog.OnContinueDialogAsync Method

Definition

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

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult> OnContinueDialogAsync (Microsoft.Bot.Builder.Dialogs.DialogContext innerDc, System.Threading.CancellationToken cancellationToken = default);
abstract member OnContinueDialogAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult>
override this.OnContinueDialogAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult>
Protected Overridable Function OnContinueDialogAsync (innerDc As DialogContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DialogTurnResult)

Parameters

innerDc
DialogContext

The inner 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.

By default, this calls the currently active inner dialog's ContinueDialogAsync(DialogContext, CancellationToken) method.

Override this method in a derived class to implement interrupt logic.

Applies to

See also