Exemplo n.º 1
0
        public RulesEngine(IRuleContextHandler <T> contextHandler)
        {
            if (contextHandler == null)
            {
                throw new RuleException("IRuleContextHandler object can not be null.");
            }

            _rules          = new HashSet <Rule>();
            _contextHandler = contextHandler;
        }
Exemplo n.º 2
0
 protected VoatRulesEngine(IRuleContextHandler <VoatRuleContext> handler)
     : base(handler)
 {
 }