Пример #1
0
 /// <summary>
 /// After all initial rule setup has completed, call this to empty the new rule queue and process all
 /// the added rules.
 /// </summary>
 public void FinalizeNewRules()
 {
     if (QueueingMode != NewRuleQueueingMode.QueueNewRules)
     {
         return;
     }
     QueueingMode = NewRuleQueueingMode.ImmediatelyAddNewRules;
     foreach (var act in NewRuleQueue)
     {
         act();
     }
     NewRuleQueue.Clear();
 }
Пример #2
0
 public RuleEngine(NewRuleQueueingMode QueueingMode)
 {
     this.QueueingMode = QueueingMode;
     Rules             = new RuleSet(this);
 }