예제 #1
0
 public static AlgorithmClientControl GetInstance()
 {
     if (instance == null)
     {
         lock (objLock)
         {
             if (instance == null)
             {
                 instance = new AlgorithmClientControl();
             }
         }
     }
     return(instance);
 }
예제 #2
0
 public override async Task OnServerDisconnected()
 {
     WriteLogRealize.GetInstance().WriteTo_rTxtLog("算法服务器中断连接!");
     AlgorithmClientControl.GetInstance().ConnectServer(MainForm.GetInstance().aIP, MainForm.GetInstance().aPort);
 }