public void Logout() { var request = new Logout() { LoginId = _LoginId }; request.Serialize(_NStream); _Client.Close(); }
public void Logout(long SID, string nexonID, string characterID, IPAddress remoteAddress, bool canTry) { Logout logout = new Logout(SID, nexonID, characterID, remoteAddress, canTry); this.Transmit(logout.Serialize()); AsyncResult asyncResult; if (this.queries.TryGetValue(nexonID, out asyncResult)) { this.queries.Remove(nexonID); asyncResult.Response = null; asyncResult.Complete(); } }
public void Logout(string nexonID, string characterID, IPAddress remoteAddress, bool canTry) { Logout logout = new Logout(nexonID, characterID, remoteAddress, canTry); this.Transmit(logout.Serialize()); Connection.Key key = new Connection.Key { NexonID = nexonID, CharacterID = characterID }; AsyncResult asyncResult; if (this.queries.TryGetValue(key, out asyncResult)) { this.queries.Remove(key); asyncResult.Response = null; asyncResult.Complete(); } }