Sprache

WaterfallDialog.RunStepAsync Methode

Definition

Erregt einen Schritt des Wasserfalldialogs.

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)

Parameter

dc
DialogContext

Die DialogContext für die aktuelle Unterhaltungswende.

index
Int32

Der Index des aktuellen Wasserfallschritts, der ausgeführt werden soll.

reason
DialogReason

Der Grund, warum der Wasserfallschritt ausgeführt wird.

result
Object

Ergebnis, das von einem Dialogfeld zurückgegeben wird, das im vorherigen Wasserfallschritt aufgerufen wird.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Eine Aufgabe, die die auszuführende Arbeitswarteschlange darstellt.

Gilt für: