コード例 #1
0
        public CSCCompilerBL(IRulesEngineDAL iDAL, string ruleTable)
        {
            _rulesDAL  = iDAL;
            _ruleTable = ruleTable;

            RefreshRules();
        }
コード例 #2
0
        public WorkFlowEngineBL(IRulesEngineDAL idal)
        {
            _rulesDAL = idal;

            _rulesBL = new BaseRuleEngineBL(_rulesDAL, TableName);

            RefreshRules();
        }
コード例 #3
0
        public ReferenceRuleEngineBL(IRulesEngineDAL idal)
        {
            _rulesDAL = idal;

            _rulesBL = new BaseRuleEngineBL(_rulesDAL, _tableName);

            RefreshRules();
        }
コード例 #4
0
        //public BaseRuleEngineBL(ICompilerBL comp, IRulesEngineDAL idal)
        //{
        //    _specificCompilerBL = comp;
        //    _dal = idal;
        //}

        private BaseRuleEngineBL(string compName, IRulesEngineDAL idal, string ruleTable)
        {
            _dal       = idal;
            RulesTable = ruleTable;

            switch (compName)
            {
            case nameof(CSCCompilerBL):
                _specificCompilerBL = new CSCCompilerBL(_dal, ruleTable);
                break;

            //case nameof(RoslynRuleEngine):
            //    _specificCompilerBL=new RoslynRuleEngine(idal);
            //    break;
            default:
                throw new NotImplementedException();
            }
        }
コード例 #5
0
 public BaseRuleEngineBL(IRulesEngineDAL idal, string ruleTable)
     : this(ConfigurationManager.AppSettings["RuleEngineCompiler"], idal, ruleTable)
 {
 }
コード例 #6
0
        public TestGUI()
        {
            InitializeComponent();

            _rulesDAL = new BaseRuleEngineDL(ConfigurationManager.AppSettings["RulesEngine"], new TimeSpan(1, 0, 0, 0));
        }
コード例 #7
0
 public Cache(IRulesEngineDAL iRulesDal, TimeSpan refreshFrequency)
 {
     _dal = iRulesDal;
     _refreshFrequency = refreshFrequency;
 }