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