コード例 #1
0
        public static RepositoryManager GetInstance()
        {
            lock (typeof(RepositoryManager))
            {
                if (instance == null)
                {
                    instance         = new RepositoryManager();
                    repositoryAccess = new RepositoryAccess();
                    instance.Init();
                }
            }

            return(instance);
        }
コード例 #2
0
        public static RepositoryManager GetInstance()
        {
            lock (typeof(RepositoryManager))
            {
                if (instance == null)
                {
                    instance			= new RepositoryManager();
                    repositoryAccess	= new RepositoryAccess();
                    instance.Init();
                }
            }

            return instance;
        }