次の方法で共有


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>

継続するダイアログ。

適用対象