ForEachElement.OnDialogEventAsync Methode

Definition

Wird aufgerufen, wenn ein Ereignis mithilfe von ausgelöst wurde, DialogContext.emitEvent()entweder durch den aktuellen Dialog oder einen Dialog, den der aktuelle Dialog gestartet hat.

public override System.Threading.Tasks.Task<bool> OnDialogEventAsync(Microsoft.Bot.Builder.Dialogs.DialogContext dc, Microsoft.Bot.Builder.Dialogs.DialogEvent e, System.Threading.CancellationToken cancellationToken);
override this.OnDialogEventAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Builder.Dialogs.DialogEvent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overrides Function OnDialogEventAsync (dc As DialogContext, e As DialogEvent, cancellationToken As CancellationToken) As Task(Of Boolean)

Parameter

dc
DialogContext

Der Dialogkontext für den aktuellen Unterhaltungswechsel.

e
DialogEvent

Das ausgelöste Ereignis.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

True, wenn das Ereignis vom aktuellen Dialogfeld behandelt wird und das Sprudeln beendet werden soll.

Gilt für: