语言

Chain.Do<T> 方法

定义

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

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

类型参数

T

对话的类型。

参数

antecedent
IDialog<T>

前行词 IDialog<TResult>。

callback
Func<IBotContext,IAwaitable<T>,Task>

回调方法。

返回

IDialog<T>

前置对话。

适用于