private object GetInstance(RegisteredObject rObject) { if (null == rObject.Instance || rObject.Existence == LifeCycle.Transient) { var parameters = ResolveCtorParam(rObject); rObject.CreateInstance(parameters.ToArray()); } return(rObject.Instance); }
public ContainerBuilder() { this.RObject = new RegisteredObject(); }