Dialog.OnDialogEventAsync Methode

Definition

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

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

Parameter

dc
DialogContext

Der Dialogkontext für den aktuellen Gesprächsverlauf.

e
DialogEvent

Das ausgelöste Ereignis.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

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

Gilt für: