Jaa


Chain.WithScorable<T,Item,Score> Method

Definition

Decorate a dialog with a scorable, so that a scorable can participate on the dialog stack.

public static Microsoft.Bot.Builder.Dialogs.IDialog<T> WithScorable<T,Item,Score> (this Microsoft.Bot.Builder.Dialogs.IDialog<T> antecedent, Microsoft.Bot.Builder.Scorables.IScorable<Item,Score> scorable);
static member WithScorable : Microsoft.Bot.Builder.Dialogs.IDialog<'T> * Microsoft.Bot.Builder.Scorables.IScorable<'Item, 'Score> -> Microsoft.Bot.Builder.Dialogs.IDialog<'T>
<Extension()>
Public Function WithScorable(Of T, Item, Score) (antecedent As IDialog(Of T), scorable As IScorable(Of Item, Score)) As IDialog(Of T)

Type Parameters

T

The type of the dialog.

Item

The type of the item scored by the scorable.

Score

The type of the scope produced by the scorable.

Parameters

antecedent
IDialog<T>

The antecedent dialog.

scorable
IScorable<Item,Score>

The scorable.

Returns

IDialog<T>

The dialog augmented with the scorables.

Applies to