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