共用方式為


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>)

使用 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>)

適用於