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

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

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