Chain.Then<T,R> Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Exécutez une action après la fin des IDialog<TResult> opérations.
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)
Paramètres de type
- T
Le type de dialogue.
- R
Ils tapent un retour par action.
Paramètres
- Antecedent
- IDialog<T>
L’antécédent IDialog<TResult>.
- Action
- Func<IBotContext,IAwaitable<T>,Task<R>>
L’action qui sera appelée après la fin du dialogue antécédent.
Retours
Le dialogue antécédent.