Exemplo n.º 1
0
 internal ForClassEndIf(RulesEngine rulesRulesEngine, ConditionalInvoker <T> conditionalInvoker, ENDIF parent)
 {
     // TODO: conditionalInvoker is not used. These rules don't actually seem to be used anyway, but this seems
     //       like a strong indication that at least this class is broken.
     this.rulesRulesEngine = rulesRulesEngine;
     this.parent           = parent;
 }
Exemplo n.º 2
0
        public static ConditionalInvoker <T> RegisterCondition <T>(this IRegisterInvoker register, Expression <Func <T, bool> > conditionalExpression)
        {
            var conditionalInvoker = new ConditionalInvoker <T>(conditionalExpression, register.RulesRulesEngine);

            register.RegisterInvoker(conditionalInvoker);
            return(conditionalInvoker);
        }
Exemplo n.º 3
0
 internal ForClassElseEndIf(RulesEngine rulesRulesEngine, ConditionalInvoker <T> conditionalInvoker, ENDIF parent)
 {
     this.rulesRulesEngine   = rulesRulesEngine;
     this.parent             = parent;
     this.conditionalInvoker = conditionalInvoker;
 }