DialogContainer.OnDialogEventAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when an event has been raised, using DialogContext.emitEvent()
, by either the current dialog or a dialog that the current dialog started.
public override System.Threading.Tasks.Task<bool> OnDialogEventAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc, Microsoft.Bot.Builder.Dialogs.DialogEvent e, System.Threading.CancellationToken cancellationToken);
override this.OnDialogEventAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Builder.Dialogs.DialogEvent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overrides Function OnDialogEventAsync (dc As DialogContext, e As DialogEvent, cancellationToken As CancellationToken) As Task(Of Boolean)
Parameters
The dialog context for the current turn of conversation.
The event being raised.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
True if the event is handled by the current dialog and bubbling should stop.