Chain.Do<T> Method

Definition

Execute a side-effect after a IDialog<TResult> completes.

public static Microsoft.Bot.Builder.Dialogs.IDialog<T> Do<T> (this Microsoft.Bot.Builder.Dialogs.IDialog<T> antecedent, Func<Microsoft.Bot.Builder.Dialogs.IBotContext,Microsoft.Bot.Builder.Dialogs.IAwaitable<T>,System.Threading.Tasks.Task> callback);
static member Do : Microsoft.Bot.Builder.Dialogs.IDialog<'T> * Func<Microsoft.Bot.Builder.Dialogs.IBotContext, Microsoft.Bot.Builder.Dialogs.IAwaitable<'T>, System.Threading.Tasks.Task> -> Microsoft.Bot.Builder.Dialogs.IDialog<'T>
<Extension()>
Public Function Do(Of T) (antecedent As IDialog(Of T), callback As Func(Of IBotContext, IAwaitable(Of T), Task)) As IDialog(Of T)

Type Parameters

T

The type of the dialog.

Parameters

antecedent
IDialog<T>

The antecedent IDialog<TResult>.

callback
Func<IBotContext,IAwaitable<T>,Task>

The callback method.

Returns

IDialog<T>

The antecedent dialog.

Applies to