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