Share via


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

ConditionalSelector()

Fields

Kind

Class identifier.

Properties

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

Initialize(IEnumerable<OnCondition>, Boolean)

Initializes the selector with the set of rules.

SelectAsync(ActionContext, CancellationToken)

Selects the best rule to execute.

Applies to