/// <inheritdoc/> public virtual void AddUsedRule(IFactRule rule) { if (_usedRules == null) { _usedRules = new List <IFactRule>(); } _usedRules.Add(rule); }
/// <inheritdoc/> public void SetGetRelatedRulesFunc <TFactRule, TWantAction, TFactContainer>(Func <TFactRule, IFactRuleCollection <TFactRule>, IWantActionContext <TWantAction, TFactContainer>, IFactRuleCollection <TFactRule> > getRelatedRulesFunc, TFactRule rule, IFactRuleCollection <TFactRule> rules) where TFactRule : IFactRule where TWantAction : IWantAction where TFactContainer : IFactContainer { _getRelatedRulesFunc = getRelatedRulesFunc; _rules = rules; _rule = rule; }