コード例 #1
0
        public RulesEngine Build()
        {
            RuntimeConfigurator runtimeConfigurator = _runtimeConfiguratorFactory();

            RuleCompiler compiler = new OdoyuleRuleCompiler(runtimeConfigurator);
            _rules.Each(rule => compiler.Add(rule));
            compiler.Compile();

            return runtimeConfigurator.RulesEngine;
        }
コード例 #2
0
        public RulesEngine Build()
        {
            RuntimeConfigurator runtimeConfigurator = _runtimeConfiguratorFactory();

            RuleCompiler compiler = new OdoyuleRuleCompiler(runtimeConfigurator);

            _rules.Each(rule => compiler.Add(rule));
            compiler.Compile();

            return(runtimeConfigurator.RulesEngine);
        }
コード例 #3
0
        void CompileRules(RuntimeConfigurator runtimeConfigurator)
        {
            RuleCompiler compiler = new OdoyuleRuleCompiler(runtimeConfigurator);

            _rules.Each(compiler.Compile);
        }