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