Esempio n. 1
0
        public override IFlowEngine NewBRE(IRulesDriver rulesDriver)
        {
            if (bref == null)
            {
                bref = new BREFactory(new DispatchException(HandleExceptionEvent),
                                      new DispatchLog(HandleLogEvent));
            }

            return(bref.NewBRE(rulesDriver));
        }
Esempio 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());
        }