Microsoft.Bot.Builder.Scorables.Internals.SelectScoreScorable< Item, SourceScore, TargetScore > Class Template Reference
Inheritance diagram for Microsoft.Bot.Builder.Scorables.Internals.SelectScoreScorable< Item, SourceScore, TargetScore >:

Public Member Functions

 SelectScoreScorable (IScorable< Item, SourceScore > scorable, Func< Item, SourceScore, TargetScore > selector)
 
Task DoneAsync (Item item, object state, CancellationToken token)
 The scoring process has completed - dispose of any scoped resources. More...
 
virtual Task DoneAsync (Item item, object state, CancellationToken token)
 
bool HasScore (Item item, object state)
 Returns whether this scorable wants to participate in scoring this item. More...
 
virtual bool HasScore (Item item, object state)
 
Task PostAsync (Item item, object state, CancellationToken token)
 If this scorable wins, this method is called. More...
 
virtual Task PostAsync (Item item, object state, CancellationToken token)
 
Task< object > PrepareAsync (Item item, CancellationToken token)
 Perform some asynchronous work to analyze the item and produce some opaque state. More...
 
virtual Task< object > PrepareAsync (Item item, CancellationToken token)
 
override string ToString ()
 

Protected Attributes

readonly IScorable< Item, Score > inner
 

Detailed Description

Definition at line 306 of file Scorables.cs.

Constructor & Destructor Documentation

Microsoft.Bot.Builder.Scorables.Internals.SelectScoreScorable< Item, SourceScore, TargetScore >.SelectScoreScorable ( IScorable< Item, SourceScore >  scorable,
Func< Item, SourceScore, TargetScore >  selector 
)
inline

Definition at line 310 of file Scorables.cs.

Member Function Documentation

Task Microsoft.Bot.Builder.Scorables.IScorable< in in Item, out out Score >.DoneAsync ( Item  item,
object  state,
CancellationToken  token 
)
inherited

The scoring process has completed - dispose of any scoped resources.

virtual Task Microsoft.Bot.Builder.Scorables.Internals.DelegatingScorable< Item, Score >.DoneAsync ( Item  item,
object  state,
CancellationToken  token 
)
inlinevirtualinherited

Definition at line 193 of file ScorableBase.cs.

bool Microsoft.Bot.Builder.Scorables.IScorable< in in Item, out out Score >.HasScore ( Item  item,
object  state 
)
inherited

Returns whether this scorable wants to participate in scoring this item.

virtual bool Microsoft.Bot.Builder.Scorables.Internals.DelegatingScorable< Item, Score >.HasScore ( Item  item,
object  state 
)
inlinevirtualinherited

Definition at line 167 of file ScorableBase.cs.

Task Microsoft.Bot.Builder.Scorables.IScorable< in in Item, out out Score >.PostAsync ( Item  item,
object  state,
CancellationToken  token 
)
inherited

If this scorable wins, this method is called.

virtual Task Microsoft.Bot.Builder.Scorables.Internals.DelegatingScorable< Item, Score >.PostAsync ( Item  item,
object  state,
CancellationToken  token 
)
inlinevirtualinherited

Definition at line 177 of file ScorableBase.cs.

Task<object> Microsoft.Bot.Builder.Scorables.IScorable< in in Item, out out Score >.PrepareAsync ( Item  item,
CancellationToken  token 
)
inherited

Perform some asynchronous work to analyze the item and produce some opaque state.

virtual Task<object> Microsoft.Bot.Builder.Scorables.Internals.DelegatingScorable< Item, Score >.PrepareAsync ( Item  item,
CancellationToken  token 
)
inlinevirtualinherited

Definition at line 151 of file ScorableBase.cs.

override string Microsoft.Bot.Builder.Scorables.Internals.DelegatingScorable< Item, Score >.ToString ( )
inlineinherited

Definition at line 146 of file ScorableBase.cs.

Member Data Documentation

readonly IScorable<Item, Score> Microsoft.Bot.Builder.Scorables.Internals.DelegatingScorable< Item, Score >.inner
protectedinherited

Definition at line 139 of file ScorableBase.cs.


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