Microsoft.Bot.Builder.Internals.Scorables.SelectScoreScorable< Item, SourceScore, TargetScore > Class Template Reference
Inheritance diagram for Microsoft.Bot.Builder.Internals.Scorables.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)
 

Protected Attributes

readonly IScorable< Item, Score > inner
 

Detailed Description

Definition at line 188 of file Scorables.cs.

Constructor & Destructor Documentation

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

Definition at line 191 of file Scorables.cs.

Member Function Documentation

Task Microsoft.Bot.Builder.Internals.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.Internals.Scorables.DelegatingScorable< Item, Score >.DoneAsync ( Item  item,
object  state,
CancellationToken  token 
)
inlinevirtualinherited

Definition at line 153 of file Scorable.cs.

bool Microsoft.Bot.Builder.Internals.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.Internals.Scorables.DelegatingScorable< Item, Score >.HasScore ( Item  item,
object  state 
)
inlinevirtualinherited

Definition at line 130 of file Scorable.cs.

Task Microsoft.Bot.Builder.Internals.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.Internals.Scorables.DelegatingScorable< Item, Score >.PostAsync ( Item  item,
object  state,
CancellationToken  token 
)
inlinevirtualinherited

Definition at line 138 of file Scorable.cs.

Task<object> Microsoft.Bot.Builder.Internals.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.Internals.Scorables.DelegatingScorable< Item, Score >.PrepareAsync ( Item  item,
CancellationToken  token 
)
inlinevirtualinherited

Definition at line 115 of file Scorable.cs.

Member Data Documentation

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

Definition at line 110 of file Scorable.cs.


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