Esempio n. 1
0
 public static void CreateInstance()
 {
     if (Instance != null)
     {
         return;
     }
     _instance = new ClientHandle();
 }
Esempio n. 2
0
        private ClientHandle()
        {
            _clients       = new List <Connection>();
            _threadRunning = true;

            _listenThread = new Thread(WorkThread);
            _listenThread.Start();
            _secondaryListinerActive = false;

            _instance = this;
        }