ConditionalSelector Class

Definition

Select between two rule selectors based on a condition.

public class ConditionalSelector : Microsoft.Bot.Builder.Dialogs.Adaptive.TriggerSelector
type ConditionalSelector = class
    inherit TriggerSelector
Public Class ConditionalSelector
Inherits TriggerSelector
Inheritance
ConditionalSelector

Constructors

Name Description
ConditionalSelector()

Fields

Name Description
Kind

Class identifier.

Properties

Name Description
Condition

Gets or sets expression that determines which selector to use.

IfFalse

Gets or sets selector if Condition is false.

IfTrue

Gets or sets selector if Condition is true.

Methods

Name Description
Initialize(IEnumerable<OnCondition>, Boolean)

Initializes the selector with the set of rules.

SelectAsync(ActionContext, CancellationToken)

Selects the best rule to execute.

Applies to