public void Disconnected(string msg = "Error Connection.") { //зачем этот запрос? Похоже он не заполняет My var login = _sessionClient.GetInfo(OCUnion.Transfer.ServerInfoType.Short).My.Login; _sessionClient.Disconnect(); }
public void Disconnected(string msg = "Error Connection.") { var login = _sessionClient.GetInfo(false).My.Login; //DiscordBotServer.Helpers.Loger.Log("Chat Disconected :( " + login); _sessionClient.Disconnect(); DisconnectedEvent?.Invoke(this, new StringWrapperEventArgument() { Message = login }); }
private void updateClientData() { var serverInfo = _sessionClient.GetInfo(true); My = serverInfo.My; Data = new ClientData(My.Login, _sessionClient); Data.ServetTimeDelta = serverInfo.ServerTime - DateTime.UtcNow; }
public void Disconnected(string msg = "Error Connection.") { var login = _sessionClient.GetInfo(OCUnion.Transfer.ServerInfoType.Short).My.Login; _sessionClient.Disconnect(); }