Microsoft.Bot.Builder.Internals.Scorables.FoldScorable< Item, Score > Class Template Referenceabstract

Fold an aggregation of scorables to produce a winning scorable. More...

Inheritance diagram for Microsoft.Bot.Builder.Internals.Scorables.FoldScorable< Item, Score >:

Classes

struct  State
 Per-scorable opaque state used during scoring process. More...
 

Public Member Functions

 FoldScorable (IComparer< Score > comparer, IEnumerable< IScorable< Item, Score >> scorables)
 

Protected Member Functions

abstract Task DoneAsync (Item item, State state, CancellationToken token)
 
override async Task DoneAsync (Item item, IReadOnlyList< State > states, CancellationToken token)
 
abstract Score GetScore (Item item, State state)
 
override Score GetScore (Item item, IReadOnlyList< State > states)
 
abstract bool HasScore (Item item, State state)
 
override bool HasScore (Item item, IReadOnlyList< State > states)
 
virtual bool OnFold (IScorable< Item, Score > scorable, Item item, object state, Score score)
 
abstract Task PostAsync (Item item, State state, CancellationToken token)
 
override Task PostAsync (Item item, IReadOnlyList< State > states, CancellationToken token)
 
override async Task< IReadOnlyList< State > > PrepareAsync (Item item, CancellationToken token)
 

Protected Attributes

readonly IComparer< Score > comparer
 
readonly IEnumerable< IScorable< Item, Score > > scorables
 

Detailed Description

Fold an aggregation of scorables to produce a winning scorable.

Definition at line 47 of file FoldScorable.cs.

Constructor & Destructor Documentation

Microsoft.Bot.Builder.Internals.Scorables.FoldScorable< Item, Score >.FoldScorable ( IComparer< Score >  comparer,
IEnumerable< IScorable< Item, Score >>  scorables 
)
inline

Definition at line 51 of file FoldScorable.cs.

Member Function Documentation

abstract Task Microsoft.Bot.Builder.Internals.Scorables.ScorableBase< Item, State, Score >.DoneAsync ( Item  item,
State  state,
CancellationToken  token 
)
protectedpure virtualinherited
override async Task Microsoft.Bot.Builder.Internals.Scorables.FoldScorable< Item, Score >.DoneAsync ( Item  item,
IReadOnlyList< State states,
CancellationToken  token 
)
inlineprotected

Definition at line 151 of file FoldScorable.cs.

abstract Score Microsoft.Bot.Builder.Internals.Scorables.ScorableBase< Item, State, Score >.GetScore ( Item  item,
State  state 
)
protectedpure virtualinherited
override Score Microsoft.Bot.Builder.Internals.Scorables.FoldScorable< Item, Score >.GetScore ( Item  item,
IReadOnlyList< State states 
)
inlineprotected

Definition at line 130 of file FoldScorable.cs.

abstract bool Microsoft.Bot.Builder.Internals.Scorables.ScorableBase< Item, State, Score >.HasScore ( Item  item,
State  state 
)
protectedpure virtualinherited
override bool Microsoft.Bot.Builder.Internals.Scorables.FoldScorable< Item, Score >.HasScore ( Item  item,
IReadOnlyList< State states 
)
inlineprotected

Definition at line 120 of file FoldScorable.cs.

virtual bool Microsoft.Bot.Builder.Internals.Scorables.FoldScorable< Item, Score >.OnFold ( IScorable< Item, Score >  scorable,
Item  item,
object  state,
Score  score 
)
inlineprotectedvirtual
abstract Task Microsoft.Bot.Builder.Internals.Scorables.ScorableBase< Item, State, Score >.PostAsync ( Item  item,
State  state,
CancellationToken  token 
)
protectedpure virtualinherited
override Task Microsoft.Bot.Builder.Internals.Scorables.FoldScorable< Item, Score >.PostAsync ( Item  item,
IReadOnlyList< State states,
CancellationToken  token 
)
inlineprotected

Definition at line 135 of file FoldScorable.cs.

override async Task<IReadOnlyList<State> > Microsoft.Bot.Builder.Internals.Scorables.FoldScorable< Item, Score >.PrepareAsync ( Item  item,
CancellationToken  token 
)
inlineprotectedvirtual

Member Data Documentation

readonly IComparer<Score> Microsoft.Bot.Builder.Internals.Scorables.FoldScorable< Item, Score >.comparer
protected

Definition at line 49 of file FoldScorable.cs.

readonly IEnumerable<IScorable<Item, Score> > Microsoft.Bot.Builder.Internals.Scorables.FoldScorable< Item, Score >.scorables
protected

Definition at line 50 of file FoldScorable.cs.


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