Ejemplo 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);
        }
Ejemplo n.º 2
0
        public override IFlowEngine NewBRE(IRulesDriver rulesDriver)
        {
            if (bref == null)
            {
                bref = new BREFactory(new DispatchException(HandleExceptionEvent),
                                      new DispatchLog(HandleLogEvent));
            }

            return(bref.NewBRE(rulesDriver));
        }
Ejemplo n.º 3
0
		public BRECloneFactory(IRulesDriver rulesDriver,
	                         DispatchException exceptionHandler,
	                         DispatchLog logHandler,
	                         DispatchRuleResult resultHandler)
		{
			if (rulesDriver == null)
				throw new BREException("A non-null IRulesDriver must be passed to BRECloneFactory");

			this.rulesDriver = rulesDriver;
			
			if (bref == null)
				bref = new BREFactory(exceptionHandler, logHandler, resultHandler);
		}
Ejemplo n.º 4
0
        public BRECloneFactory(IRulesDriver rulesDriver,
                               DispatchException exceptionHandler,
                               DispatchLog logHandler,
                               DispatchRuleResult resultHandler)
        {
            if (rulesDriver == null)
            {
                throw new BREException("A non-null IRulesDriver must be passed to BRECloneFactory");
            }

            this.rulesDriver = rulesDriver;

            if (bref == null)
            {
                bref = new BREFactory(exceptionHandler, logHandler, resultHandler);
            }
        }