Taal

ComponentDialog.OnContinueDialogAsync Methode

Definitie

Wordt aangeroepen wanneer de dialoog wordt voortgezet, waarbij het de actieve dialoog is en de gebruiker reageert met een nieuwe activiteit.

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

De innerlijke DialogContext voor de huidige wending van het gesprek.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Een Task weergave van de asynchrone bewerking.

Opmerkingen

Als de taak is geslaagd, geeft het resultaat aan of het dialoogvenster nog steeds actief is nadat de draai is verwerkt door het dialoogvenster. Het resultaat kan ook een retourwaarde bevatten.

Standaard roept dit de ContinueDialogAsync(DialogContext, CancellationToken) methode van de momenteel actieve innerlijke dialoog aan.

Overschrijf deze methode in een afgeleide klasse om interruptlogica te implementeren.

Van toepassing op

Zie ook