Esempio n. 1
0
 public ControlCenter()
 {
     if (mySocket == null)
     {
         lock (_lock)
         {
             mySocket = MySocket.GetInstance();
             mySocket.coreProccessing += dataProccess;
         }
     }
 }
Esempio n. 2
0
 public static MySocket GetInstance()
 {
     if (instance == null)
     {
         lock (_lock)
         {
             if (instance == null)
             {
                 instance = new MySocket();
             }
         }
     }
     return instance;
 }
Esempio n. 3
0
 public static MySocket GetInstance()
 {
     if (instance == null)
     {
         lock (_lock)
         {
             if (instance == null)
             {
                 instance = new MySocket();
             }
         }
     }
     return(instance);
 }