Share via


Dialog.OnPostBubbleEventAsync Method

Definition

Called after an event was bubbled to all parents and wasn't handled.

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

Parameters

dc
DialogContext

The dialog context for the current turn of conversation.

e
DialogEvent

The event being raised.

cancellationToken
CancellationToken

Cancellation token.

Returns

Whether the event is handled by the current dialog and further processing should stop.

Remarks

This is a good place to perform default processing logic for an event. Returning `true` will prevent any processing of the event by child dialogs.

Applies to