Example #1
0
        private object GetInstance(RegisteredObject registeredObject)
        {
            if (registeredObject.Instance != null && registeredObject.LifeCycle != LifeCycle.Transient)
            {
                return(registeredObject.Instance);
            }

            var parameters = ResolveConstructParameters(registeredObject);

            registeredObject.CreateInstance(parameters.ToArray());

            return(registeredObject.Instance);
        }
Example #2
0
 static void To(this RegisteredObject registertewdObject)
 {
 }