Ejemplo n.º 1
0
        public static void Init()
        {
            lock (Lock)
            {
                if (_instance != null)
                    throw new ApplicationException("Cannot Init ApiEventReader more than once!");

                _instance = new ApiEventReader();
                ThreadPool.QueueUserWorkItem(InitReader);
            }
        }
Ejemplo n.º 2
0
        public static void Init()
        {
            lock (Lock)
            {
                if (_instance != null)
                {
                    throw new ApplicationException("Cannot Init ApiEventReader more than once!");
                }

                _instance = new ApiEventReader();
                ThreadPool.QueueUserWorkItem(InitReader);
            }
        }