语言

WaterfallStep 委托

定义

代表对瀑布步骤的定义。 这是由应用程序代码实现的。

public delegate System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult> WaterfallStep(WaterfallStepContext stepContext, CancellationToken cancellationToken);
type WaterfallStep = delegate of WaterfallStepContext * CancellationToken -> Task<DialogTurnResult>
Public Delegate Function WaterfallStep(stepContext As WaterfallStepContext, cancellationToken As CancellationToken) As Task(Of DialogTurnResult) 

参数

stepContext
WaterfallStepContext

此瀑布对话的 WaterfallStepContext。

cancellationToken
CancellationToken

取消令牌。

返回值

表示异步作的 TaskDialogTurnResult。

适用于