public CSCCompilerBL(IRulesEngineDAL iDAL, string ruleTable) { _rulesDAL = iDAL; _ruleTable = ruleTable; RefreshRules(); }
public WorkFlowEngineBL(IRulesEngineDAL idal) { _rulesDAL = idal; _rulesBL = new BaseRuleEngineBL(_rulesDAL, TableName); RefreshRules(); }
public ReferenceRuleEngineBL(IRulesEngineDAL idal) { _rulesDAL = idal; _rulesBL = new BaseRuleEngineBL(_rulesDAL, _tableName); RefreshRules(); }
//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(); } }
public BaseRuleEngineBL(IRulesEngineDAL idal, string ruleTable) : this(ConfigurationManager.AppSettings["RuleEngineCompiler"], idal, ruleTable) { }
public TestGUI() { InitializeComponent(); _rulesDAL = new BaseRuleEngineDL(ConfigurationManager.AppSettings["RulesEngine"], new TimeSpan(1, 0, 0, 0)); }
public Cache(IRulesEngineDAL iRulesDal, TimeSpan refreshFrequency) { _dal = iRulesDal; _refreshFrequency = refreshFrequency; }