示例#1
0
        public void Logout()
        {
            var request = new Logout()
            {
                LoginId = _LoginId
            };

            request.Serialize(_NStream);
            _Client.Close();
        }
示例#2
0
        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();
            }
        }
示例#3
0
        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();
            }
        }