语言

Chain.Then<T,R> 方法

定义

完成后 IDialog<TResult> 执行一个动作。

public static Microsoft.Bot.Builder.Dialogs.IDialog<R> Then<T,R>(this Microsoft.Bot.Builder.Dialogs.IDialog<T> Antecedent, Func<Microsoft.Bot.Builder.Dialogs.IBotContext,Microsoft.Bot.Builder.Dialogs.IAwaitable<T>,System.Threading.Tasks.Task<R>> Action);
static member Then : Microsoft.Bot.Builder.Dialogs.IDialog<'T> * Func<Microsoft.Bot.Builder.Dialogs.IBotContext, Microsoft.Bot.Builder.Dialogs.IAwaitable<'T>, System.Threading.Tasks.Task<'R>> -> Microsoft.Bot.Builder.Dialogs.IDialog<'R>
<Extension()>
Public Function Then(Of T, R) (Antecedent As IDialog(Of T), Action As Func(Of IBotContext, IAwaitable(Of T), Task(Of R))) As IDialog(Of R)

类型参数

T

对话的类型。

R

它们按动作返回类型。

参数

Antecedent
IDialog<T>

前行词 IDialog<TResult>。

Action
Func<IBotContext,IAwaitable<T>,Task<R>>

在前件对话完成后将调用的动作。

返回

IDialog<R>

前置对话。

适用于