Share via


Chain.SelectMany<T,C,R> Method

Definition

When the antecedent IDialog<TResult> has completed, execute the next IDialog<TResult>, and use the projection to combine the results.

public static Microsoft.Bot.Builder.Dialogs.IDialog<R> SelectMany<T,C,R> (this Microsoft.Bot.Builder.Dialogs.IDialog<T> antecedent, Func<T,Microsoft.Bot.Builder.Dialogs.IDialog<C>> function, Func<T,C,R> projection);
static member SelectMany : Microsoft.Bot.Builder.Dialogs.IDialog<'T> * Func<'T, Microsoft.Bot.Builder.Dialogs.IDialog<'C>> * Func<'T, 'C, 'R> -> Microsoft.Bot.Builder.Dialogs.IDialog<'R>
<Extension()>
Public Function SelectMany(Of T, C, R) (antecedent As IDialog(Of T), function As Func(Of T, IDialog(Of C)), projection As Func(Of T, C, R)) As IDialog(Of R)

Type Parameters

T

The type of the antecedent dialog.

C

The type of the intermediate dialog.

R

The type of the projected dialog.

Parameters

antecedent
IDialog<T>

The antecedent dialog IDialog<TResult>.

function
Func<T,IDialog<C>>

The factory method to create the next dialog IDialog<TResult>.

projection
Func<T,C,R>

The projection function for the combination of the two dialogs.

Returns

IDialog<R>

The result IDialog<TResult>.

Applies to