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

            registeredObject.CreateInstance();
            return(registeredObject.Instance);
        }