Chain.Then<T,R> Method

Definition

Execute an action after the IDialog<TResult> completes.

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)

Type Parameters

T

The type of the dialog.

R

They type returned by action.

Parameters

Antecedent
IDialog<T>

The antecedent IDialog<TResult>.

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

The action that will be called after the antecedent dialog completes.

Returns

IDialog<R>

The antecedent dialog.

Applies to