Share via


OnCondition Class

Definition

Actions triggered when condition is true.

public class OnCondition : Microsoft.Bot.Builder.Dialogs.IDialogDependencies, Microsoft.Bot.Builder.Dialogs.IItemIdentity
type OnCondition = class
    interface IItemIdentity
    interface IDialogDependencies
Public Class OnCondition
Implements IDialogDependencies, IItemIdentity
Inheritance
OnCondition
Derived
Implements

Constructors

OnCondition(String, List<Dialog>, String, Int32)

Initializes a new instance of the OnCondition class.

Fields

Kind

Class identifier.

Properties

Actions

Gets or sets the actions to add to the plan when the rule constraints are met.

ActionScope

Gets the action scope.

Condition

Gets or sets the condition which needs to be met for the actions to be executed (OPTIONAL).

Id

Gets or sets the value of the unique id for this condition.

Priority

Gets or sets the rule priority expression where 0 is the highest and less than 0 is ignored.

RunOnce

Gets or sets a value indicating whether rule should only run once per unique set of memory paths.

Source

Gets the source.

Methods

AddExternalCondition(Expression)

Add external condition to the OnCondition.

AddExternalCondition(String)

Add external condition to the OnCondition.

CreateExpression()

Create the expression for this condition.

CurrentPriority(ActionContext)

Compute the current value of the priority expression and return it.

ExecuteAsync(ActionContext)

Method called to execute the rule's actions.

GetDependencies()

Enumerates child dialog dependencies so they can be added to the containers dialog set.

GetExpression()

Get the cached expression for this condition.

GetIdentity()

Method called to execute the rule's actions.

OnCreateChangeList(ActionContext, Object)

Called when a change list is created.

RegisterSourceLocation(String, Int32)

Registers the source location.

Applies to