SelectScoreScorable<Item,SourceScore,TargetScore> 类

定义

[System.Serializable]
public sealed class SelectScoreScorable<Item,SourceScore,TargetScore> : Microsoft.Bot.Builder.Scorables.Internals.DelegatingScorable<Item,SourceScore>, Microsoft.Bot.Builder.Scorables.IScorable<Item,TargetScore>
[<System.Serializable>]
type SelectScoreScorable<'Item, 'SourceScore, 'argetScore> = class
    inherit DelegatingScorable<'Item, 'SourceScore>
    interface IScorable<'Item, 'argetScore>
Public NotInheritable Class SelectScoreScorable(Of Item, SourceScore, TargetScore)
Inherits DelegatingScorable(Of Item, SourceScore)
Implements IScorable(Of Item, TargetScore)

类型参数

Item
SourceScore
TargetScore
继承
DelegatingScorable<Item,SourceScore>
SelectScoreScorable<Item,SourceScore,TargetScore>
属性
实现
IScorable<Item,TargetScore>

构造函数

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

字段

inner (继承自 DelegatingScorable<Item,Score>)

方法

DoneAsync(Item, Object, CancellationToken) (继承自 DelegatingScorable<Item,Score>)
GetScore(Item, Object) (继承自 DelegatingScorable<Item,Score>)
HasScore(Item, Object) (继承自 DelegatingScorable<Item,Score>)
PostAsync(Item, Object, CancellationToken) (继承自 DelegatingScorable<Item,Score>)
PrepareAsync(Item, CancellationToken) (继承自 DelegatingScorable<Item,Score>)
ToString() (继承自 DelegatingScorable<Item,Score>)

显式接口实现

IScorable<Item,TargetScore>.GetScore(Item, Object)

扩展方法

SelectItem<SourceItem,TargetItem,Score>(IScorable<TargetItem,Score>, Func<SourceItem,TargetItem>)

使用 lambda 表达式投影可评分项。

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

使用 lambda 表达式投影可评分项的分数。

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

对单个可评分项调用可评分调用协议。

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

适用于