Пример #1
0
        public static LifecycleManager GetInstance()
        {
            if (manager == null)
            {
                manager = new LifecycleManager();
            }

            return(manager);
        }
Пример #2
0
        public static LifecycleManager <T> GetInstance()
        {
            lock (singletonMutex)
            {
                if (manager == null)
                {
                    manager = new LifecycleManager <T>();
                }

                return(manager);
            }
        }