Microsoft.Bot.Builder.Dialogs.Internals.Extensions Class Reference

Static Public Member Functions

static async Task InterruptAsync< T, R > (this IDialogTask task, IDialog< T > dialog, R item, CancellationToken token)
 Interrupt the waiting dialog with a new dialog More...
 
static T MaxBy< T, R > (this IEnumerable< T > items, Func< T, R > selectRank, IComparer< R > comparer=null)
 

Detailed Description

Definition at line 41 of file Base/Extensions.cs.

Member Function Documentation

static async Task Microsoft.Bot.Builder.Dialogs.Internals.Extensions.InterruptAsync< T, R > ( this IDialogTask  task,
IDialog< T >  dialog,
item,
CancellationToken  token 
)
inlinestatic

Interrupt the waiting dialog with a new dialog

Template Parameters
TThe type of result expected from the dialog.
RThe type of the item posted to dialog.
Parameters
taskThe dialog task.
dialogThe new interrupting dialog.
itemThe item to forward to the new interrupting dialog.
tokenThe cancellation token.
Returns
A task that represents the interruption operation.

Definition at line 121 of file IDialogTask.cs.

static T Microsoft.Bot.Builder.Dialogs.Internals.Extensions.MaxBy< T, R > ( this IEnumerable< T >  items,
Func< T, R >  selectRank,
IComparer< R >  comparer = null 
)
inlinestatic

Definition at line 43 of file Base/Extensions.cs.


The documentation for this class was generated from the following files: