示例#1
0
        public static ConditionalInvoker <T> RegisterCondition <T>(this IRegisterInvoker register, Expression <Func <T, bool> > conditionalExpression)
        {
            ConditionalInvoker <T> conditionalInvoker = new ConditionalInvoker <T>(conditionalExpression, register.RulesEngine);

            register.RegisterInvoker(conditionalInvoker);
            return(conditionalInvoker);
        }
示例#2
0
 internal ForClassElseEndIf(Engine rulesEngine, ConditionalInvoker <T> conditionalInvoker, ENDIF parent)
 {
     _rulesEngine        = rulesEngine;
     _parent             = parent;
     _conditionalInvoker = conditionalInvoker;
 }