예제 #1
0
        public void EnsureStarted(out bool firstStart)
        {
            firstStart = false;
            if (instance != null)
            {
                return;
            }

            lock (ThisLock)
            {
                if (instance != null)
                {
                    return;
                }

                instance   = new AppInstance(this.appKey);
                firstStart = true;
            }
        }
예제 #2
0
        public void EnsureStarted(out bool firstStart)
        {
            firstStart = false;
            if (instance != null)
                return;

            lock (ThisLock)
            {
                if (instance != null)
                {
                    return;
                }

                instance = new AppInstance(this.appKey);
                firstStart = true;
            }
        }