ConditionalSelector Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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. |