Share via


WaterfallDialog.RunStepAsync Method

Definition

Excutes a step of the waterfall dialog.

protected System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult> RunStepAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc, int index, Microsoft.Bot.Builder.Dialogs.DialogReason reason, object result, System.Threading.CancellationToken cancellationToken);
member this.RunStepAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * int * Microsoft.Bot.Builder.Dialogs.DialogReason * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult>
Protected Function RunStepAsync (dc As DialogContext, index As Integer, reason As DialogReason, result As Object, cancellationToken As CancellationToken) As Task(Of DialogTurnResult)

Parameters

dc
DialogContext

The DialogContext for the current turn of conversation.

index
Int32

The index of the current waterfall step to execute.

reason
DialogReason

The reason the waterfall step is being executed.

result
Object

Result returned by a dialog called in the previous waterfall step.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A task that represents the work queued to execute.

Applies to