Language

ScorableBase<Item,State,Score> クラス

定義

スコア可能な実装の便宜のために、不透明状態の静的型検査を許可します。

[System.Serializable]
public abstract class ScorableBase<Item,State,Score> : Microsoft.Bot.Builder.Scorables.IScorable<Item,Score>
[<System.Serializable>]
type ScorableBase<'Item, 'State, 'Score> = class
    interface IScorable<'Item, 'Score>
Public MustInherit Class ScorableBase(Of Item, State, Score)
Implements IScorable(Of Item, Score)

型パラメーター

Item
State
Score
継承
ScorableBase<Item,State,Score>
派生
属性
実装

注釈

IScorableメソッドはDebuggerStepThroughでマークされます。なぜなら、コンパイラが抽象状態型メソッドを実装する派生クラスの型安全性を検証すると、これらのDebuggerStepThroughメソッドはランタイム型エラーによる例外をスローしないからです。

コンストラクター

名前 説明
ScorableBase<Item,State,Score>()

スコア可能な実装の便宜のために、不透明状態の静的型検査を許可します。

メソッド

名前 説明
DoneAsync(Item, State, CancellationToken)

スコア可能な実装の便宜のために、不透明状態の静的型検査を許可します。

GetScore(Item, State)

スコア可能な実装の便宜のために、不透明状態の静的型検査を許可します。

HasScore(Item, State)

スコア可能な実装の便宜のために、不透明状態の静的型検査を許可します。

PostAsync(Item, State, CancellationToken)

スコア可能な実装の便宜のために、不透明状態の静的型検査を許可します。

PrepareAsync(Item, CancellationToken)

スコア可能な実装の便宜のために、不透明状態の静的型検査を許可します。

明示的なインターフェイスの実装

名前 説明
IScorable<Item,Score>.DoneAsync(Item, Object, CancellationToken)

スコア可能な実装の便宜のために、不透明状態の静的型検査を許可します。

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

スコア可能な実装の便宜のために、不透明状態の静的型検査を許可します。

IScorable<Item,Score>.HasScore(Item, Object)

スコア可能な実装の便宜のために、不透明状態の静的型検査を許可します。

IScorable<Item,Score>.PostAsync(Item, Object, CancellationToken)

スコア可能な実装の便宜のために、不透明状態の静的型検査を許可します。

IScorable<Item,Score>.PrepareAsync(Item, CancellationToken)

スコア可能な実装の便宜のために、不透明状態の静的型検査を許可します。

拡張メソッド

名前 説明
SelectItem<SourceItem,TargetItem,Score>(IScorable<TargetItem,Score>, Func<SourceItem,TargetItem>)

Project の得点項目をラムダ式で投影します。

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

Project 得点のスコアをラムダ式で算出します。

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

単一のスコアラブルに対してスコア可能呼び出しプロトコルを呼び出します。

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

スコア可能な実装の便宜のために、不透明状態の静的型検査を許可します。

適用対象