Exemple #1
0
        public override IFlowEngine NewBRE(IRulesDriver rulesDriver)
        {
            if (bref == null)
                bref = new BREFactory(new DispatchException(HandleExceptionEvent),
                           					new DispatchLog(HandleLogEvent));

            return bref.NewBRE(rulesDriver);
        }
Exemple #2
0
        public override IFlowEngine NewBRE(IRulesDriver rulesDriver)
        {
            if (bref == null)
            {
                bref = new BREFactory(new DispatchException(HandleExceptionEvent),
                                      new DispatchLog(HandleLogEvent));
            }

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