Microsoft.Bot.Builder.Internals.Scorables.Scorables 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)
 Select a single winning scorable from an enumeration of scorables using a score comparer. 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...
 

Detailed Description

Definition at line 44 of file Scorables.cs.

Member Function Documentation

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

Select the first scorable that produces a score.

Definition at line 88 of file Scorables.cs.

static IScorable<Item, Score> Microsoft.Bot.Builder.Internals.Scorables.Scorables.Fold< Item, Score > ( this IEnumerable< IScorable< Item, Score >>  scorables,
IComparer< Score >  comparer 
)
inlinestatic

Select a single winning scorable from an enumeration of scorables using a score comparer.

Definition at line 96 of file Scorables.cs.

static IScorable<SourceItem, Score> Microsoft.Bot.Builder.Internals.Scorables.Scorables.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 80 of file Scorables.cs.

static IScorable<Item, TargetScore> Microsoft.Bot.Builder.Internals.Scorables.Scorables.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 72 of file Scorables.cs.

static async Task<bool> Microsoft.Bot.Builder.Internals.Scorables.Scorables.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 49 of file Scorables.cs.


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