Table of Contents

Class RepeatabilityAttribute

Namespace
NRules.Fluent.Dsl
Assembly
NRules.Fluent.dll

Sets rule's repeatability, that is, how it behaves when it is activated with the same set of facts multiple times, which is important for recursion control. By default rules are Repeatable, which means a rule will fire every time it is activated with the same set of facts. If repeatability is set to NonRepeatable then the rule will not fire with the same combination of facts, unless that combination was previously deactivated (i.e. through retraction).

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class RepeatabilityAttribute : Attribute
Inheritance
RepeatabilityAttribute
Inherited Members

Constructors

RepeatabilityAttribute(RuleRepeatability)

public RepeatabilityAttribute(RuleRepeatability value)

Parameters

value RuleRepeatability