InputDialog.OnPreBubbleEventAsync Method

Definition

Called before an event is bubbled to its parent.

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

Parameters

dc
DialogContext

The DialogContext for the current turn of conversation.

e
DialogEvent

The event being raised.

cancellationToken
CancellationToken

Optional, the CancellationToken that can be used by other objects or threads to receive notice of cancellation.

Returns

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

Applies to