Dialog.OnDialogEventAsync Method

Definition

Called when an event has been raised, using DialogContext.emitEvent(), by either the current dialog or a dialog that the current dialog started.

C#
public virtual System.Threading.Tasks.Task<bool> OnDialogEventAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc, Microsoft.Bot.Builder.Dialogs.DialogEvent e, System.Threading.CancellationToken cancellationToken);

Parameters

dc
DialogContext

The dialog context for the current turn of conversation.

e
DialogEvent

The event being raised.

cancellationToken
CancellationToken

The cancellation token.

Returns

True if the event is handled by the current dialog and bubbling should stop.

Applies to

Produk Versi
Microsoft.Bot.Builder 4.0