예제 #1
0
        private object GetInstance(RegisteredObject rObject)
        {
            if (null == rObject.Instance || rObject.Existence == LifeCycle.Transient)
            {
                var parameters = ResolveCtorParam(rObject);
                rObject.CreateInstance(parameters.ToArray());
            }

            return(rObject.Instance);
        }
예제 #2
0
 public ContainerBuilder()
 {
     this.RObject = new RegisteredObject();
 }