Microsoft.Bot.Builder.Scorables.Scorable Class Reference

Static Public Member Functions

static IScorable< Item, Score > First< Item, Score > (this IEnumerable< IScorable< Item, Score >> scorables)
 Select the first scorable that produces a score. More...
 
static IScorable< Item, Score > Fold< Item, Score > (this IEnumerable< IScorable< Item, Score >> scorables, IComparer< Score > comparer=null, FoldScorable< Item, Score >.OnStageDelegate onStage=null)
 Fold an enumeration of scorables using a score comparer. More...
 
static bool Keep< Item, Score > (IScorable< Item, Score > scorable)
 True if the scorable is non-null, false otherwise. More...
 
static IScorable< SourceItem, Score > SelectItem< SourceItem, TargetItem, Score > (this IScorable< TargetItem, Score > scorable, Func< SourceItem, TargetItem > selector)
 Project the item of a scorable using a lambda expression. More...
 
static IScorable< Item, TargetScore > SelectScore< Item, SourceScore, TargetScore > (this IScorable< Item, SourceScore > scorable, Func< Item, SourceScore, TargetScore > selector)
 Project the score of a scorable using a lambda expression. More...
 
static async Task< bool > TryPostAsync< Item, Score > (this IScorable< Item, Score > scorable, Item item, CancellationToken token)
 Invoke the scorable calling protocol against a single scorable. More...
 
static bool TryReduce< Item, Score > (ref IEnumerable< IScorable< Item, Score >> scorables, out IScorable< Item, Score > scorable)
 Try to simplify a list of scorables. More...
 
static IScorable< Item, Score > WhereScore< Item, Score > (this IScorable< Item, Score > scorable, Func< Item, Score, bool > predicate)
 

Detailed Description

Definition at line 48 of file Scorables.cs.

Member Function Documentation

static IScorable<Item, Score> Microsoft.Bot.Builder.Scorables.Scorable.First< Item, Score > ( this IEnumerable< IScorable< Item, Score >>  scorables)
inlinestatic

Select the first scorable that produces a score.

Definition at line 183 of file Scorables.cs.

static IScorable<Item, Score> Microsoft.Bot.Builder.Scorables.Scorable.Fold< Item, Score > ( this IEnumerable< IScorable< Item, Score >>  scorables,
IComparer< Score >  comparer = null,
FoldScorable< Item, Score >.OnStageDelegate  onStage = null 
)
inlinestatic

Fold an enumeration of scorables using a score comparer.

Definition at line 197 of file Scorables.cs.

static bool Microsoft.Bot.Builder.Scorables.Scorable.Keep< Item, Score > ( IScorable< Item, Score >  scorable)
inlinestatic

True if the scorable is non-null, false otherwise.

Definition at line 97 of file Scorables.cs.

static IScorable<SourceItem, Score> Microsoft.Bot.Builder.Scorables.Scorable.SelectItem< SourceItem, TargetItem, Score > ( this IScorable< TargetItem, Score >  scorable,
Func< SourceItem, TargetItem >  selector 
)
inlinestatic

Project the item of a scorable using a lambda expression.

Definition at line 89 of file Scorables.cs.

static IScorable<Item, TargetScore> Microsoft.Bot.Builder.Scorables.Scorable.SelectScore< Item, SourceScore, TargetScore > ( this IScorable< Item, SourceScore >  scorable,
Func< Item, SourceScore, TargetScore >  selector 
)
inlinestatic

Project the score of a scorable using a lambda expression.

Definition at line 81 of file Scorables.cs.

static async Task<bool> Microsoft.Bot.Builder.Scorables.Scorable.TryPostAsync< Item, Score > ( this IScorable< Item, Score >  scorable,
Item  item,
CancellationToken  token 
)
inlinestatic

Invoke the scorable calling protocol against a single scorable.

Definition at line 53 of file Scorables.cs.

static bool Microsoft.Bot.Builder.Scorables.Scorable.TryReduce< Item, Score > ( ref IEnumerable< IScorable< Item, Score >>  scorables,
out IScorable< Item, Score >  scorable 
)
inlinestatic

Try to simplify a list of scorables.

Parameters
scorablesThe simplified list of scorables.
scorableThe single scorable representing the list, if possible.
Returns
True if it were possible to reduce the list of scorables to a single scorable, false otherwise.

Definition at line 121 of file Scorables.cs.

static IScorable<Item, Score> Microsoft.Bot.Builder.Scorables.Scorable.WhereScore< Item, Score > ( this IScorable< Item, Score >  scorable,
Func< Item, Score, bool >  predicate 
)
inlinestatic

Definition at line 73 of file Scorables.cs.


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