Chain.SelectMany<T,C,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.
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>.
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
The result IDialog<TResult>.