public void Dispose() { IsRun = false; OnServerCountChange = null; OnDeadServer = null; mainThread = null; _ServerManage = null; }
public static ServersManage GetInstance() { if (_ServerManage == null) { lock (_lockobj) { if (_ServerManage == null) { _ServerManage = new ServersManage(); } } } return(_ServerManage); }