语言

DelegateScorable 类

定义

[System.Serializable]
public sealed class DelegateScorable : Microsoft.Bot.Builder.Scorables.Internals.MethodScorableBase
[<System.Serializable>]
type DelegateScorable = class
    inherit MethodScorableBase
Public NotInheritable Class DelegateScorable
Inherits MethodScorableBase
继承
属性

构造函数

名称 说明
DelegateScorable(Delegate)

属性

名称 说明
Method

方法

名称 说明
DoneAsync(IResolver, IBinding, CancellationToken) (继承自 MethodScorableBase)
DoneAsync(Item, State, CancellationToken) (继承自 ScorableBase<Item,State,Score>)
GetScore(IResolver, IBinding) (继承自 MethodScorableBase)
GetScore(Item, State) (继承自 ScorableBase<Item,State,Score>)
HasScore(IResolver, IBinding) (继承自 MethodScorableBase)
HasScore(Item, State) (继承自 ScorableBase<Item,State,Score>)
PostAsync(IResolver, IBinding, CancellationToken) (继承自 MethodScorableBase)
PostAsync(Item, State, CancellationToken) (继承自 ScorableBase<Item,State,Score>)
PrepareAsync(Item, CancellationToken) (继承自 ScorableBase<Item,State,Score>)
ToString() (继承自 MethodScorableBase)

显式接口实现

名称 说明
IScorable<Item,Score>.DoneAsync(Item, Object, CancellationToken) (继承自 ScorableBase<Item,State,Score>)
IScorable<Item,Score>.GetScore(Item, Object) (继承自 ScorableBase<Item,State,Score>)
IScorable<Item,Score>.HasScore(Item, Object) (继承自 ScorableBase<Item,State,Score>)
IScorable<Item,Score>.PostAsync(Item, Object, CancellationToken) (继承自 ScorableBase<Item,State,Score>)
IScorable<Item,Score>.PrepareAsync(Item, CancellationToken) (继承自 ScorableBase<Item,State,Score>)

扩展方法

名称 说明
SelectItem<SourceItem,TargetItem,Score>(IScorable<TargetItem,Score>, Func<SourceItem,TargetItem>)

Project 使用 lambda 表达式对可得分项进行投影。

SelectScore<Item,SourceScore,TargetScore>(IScorable<Item,SourceScore>, Func<Item,SourceScore,TargetScore>)

Project 用 lambda 表达式推算可得分者的得分。

TryPostAsync<Item,Score>(IScorable<Item,Score>, Item, CancellationToken)

对单个可评分调用协议。

WhereScore<Item,Score>(IScorable<Item,Score>, Func<Item,Score,Boolean>)

适用于