Beispiel #1
0
        public void CloseSession(string sessionKey)
        {
            TcpSocketSession session = null;

            if (_sessions.TryGetValue(sessionKey, out session))
            {
                session.Close(); // parent server close session by session-key
            }
        }
Beispiel #2
0
        public void CloseSession(string sessionKey)
        {
            TcpSocketSession session = null;

            if (_sessions.TryGetValue(sessionKey, out session))
            {
                session.Close();
            }
        }
        private void CloseSession(TcpSocketSession session)
        {
            if (session == null)
            {
                return;
            }

            _sessions.TryRemove(session.SessionKey, out var sessionToBeThrowAway);
            session.Close(); // parent server close session
        }
Beispiel #4
0
        private void CloseSession(TcpSocketSession session)
        {
            TcpSocketSession sessionToBeThrowAway;

            _sessions.TryRemove(session.SessionKey, out sessionToBeThrowAway);

            if (session != null)
            {
                session.Close(); // parent server close session
            }
        }
Beispiel #5
0
        private void CloseSession(TcpSocketSession session)
        {
            TcpSocketSession sessionToBeThrowAway;
            _sessions.TryRemove(session.SessionKey, out sessionToBeThrowAway);

            if (session != null)
            {
                session.Close();
            }
        }