Dialog.OnPreBubbleEventAsync(DialogContext, DialogEvent, CancellationToken) Methode
Definition
Wird aufgerufen, bevor ein Ereignis zu seinem übergeordneten Element bubelt wird.Called before an event is bubbled to its parent.
protected virtual System.Threading.Tasks.Task<bool> OnPreBubbleEventAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc, Microsoft.Bot.Builder.Dialogs.DialogEvent e, System.Threading.CancellationToken cancellationToken);
abstract member OnPreBubbleEventAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Builder.Dialogs.DialogEvent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.OnPreBubbleEventAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Builder.Dialogs.DialogEvent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Protected Overridable Function OnPreBubbleEventAsync (dc As DialogContext, e As DialogEvent, cancellationToken As CancellationToken) As Task(Of Boolean)
Parameter
Der Dialog Kontext für die aktuelle Konversation.The dialog context for the current turn of conversation.
Das Ereignis, das ausgelöst wird.The event being raised.
- cancellationToken
- CancellationToken
Abbruchtoken.Cancellation token.
Gibt zurück
Gibt an, ob das Ereignis durch das aktuelle Dialogfeld behandelt wird und die weitere Verarbeitung beendet werden soll.Whether the event is handled by the current dialog and further processing should stop.
Hinweise
Dies ist ein guter Ausgangspunkt, um das Abfangen eines Ereignisses durchzuführen, da die Rückgabe von das true
Ereignis in den Dialogfeldern übergeordnete Dialoge verhindert und auch verhindert, dass untergeordnete Dialoge Ihre Standard Verarbeitung durchführen.This is a good place to perform interception of an event as returning true
will prevent any further bubbling of the event to the dialogs parents and will also prevent any child dialogs from performing their default processing.