Example #1
0
 public RuleService(T model, IList<IRule<T>> rules,
     IRuleEngineConfiguration<T> ruleEngineConfiguration)
 {
     _model = model;
     _rules = rules;
     _rxRuleService = new RxRuleService<IRule<T>, T>(_rules);
     _ruleEngineConfiguration = ruleEngineConfiguration;
 }
Example #2
0
 public AsyncRuleService(T model, IList <IRuleAsync <T> > rules,
                         IRuleEngineConfiguration <T> ruleEngineTerminated)
 {
     _model                   = model;
     _rules                   = rules;
     _rxRuleService           = new RxRuleService <IRuleAsync <T>, T>(_rules);
     _ruleEngineConfiguration = ruleEngineTerminated;
 }