Chain.Then<T,R> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
完成後 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>
前置對話。