Chain.Then<T,R> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.