Taal

DialogContainer.OnDialogEventAsync Methode

Definitie

Wordt aangeroepen wanneer een gebeurtenis is opgeroepen, met behulp van DialogContext.emitEvent(), door ofwel de huidige dialoog of een dialoog die de huidige dialoog is gestart.

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

dc
DialogContext

De context van het dialoogvenster voor de huidige gesprekswisseling.

e
DialogEvent

De gebeurtenis die wordt gegenereerd.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

Is waar als de gebeurtenis wordt verwerkt door het huidige dialoogvenster en bubbling moet stoppen.

Van toepassing op