public IFlowEngine NewBRE(IRulesDriver rulesDriver) { if (bref == null) { bref = new BREFactory(); } 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()); }