Exemplo n.º 1
0
        public IFlowEngine NewBRE(IRulesDriver rulesDriver)
        {
            if (bref == null)
            {
                bref = new BREFactory();
            }

            return(bref.NewBRE(rulesDriver));
        }
Exemplo n.º 2
0
        public IFlowEngine NewBRE()
        {
            if (bref == null)
            {
                throw new BREException("BRECloneFactory is not correctly initialized.");
            }

            if (bre == null)
            {
                bre = bref.NewBRE(rulesDriver);
            }

            if (bre == null)
            {
                throw new BREException("BRECloneFactory could not instantiate an valid IBRE implementation.");
            }

            return((IFlowEngine)bre.Clone());
        }