/// <summary> /// Removes specified session from sessions collection. /// </summary> /// <param name="session">Session to remove.</param> internal protected void RemoveSession(SocketServerSession session) { lock(m_pSessions){ m_pSessions.Remove(session); } }
/// <summary> /// Removes specified session from sessions collection. /// </summary> /// <param name="session">Session to remove.</param> internal protected void RemoveSession(SocketServerSession session) { lock (m_pSessions){ m_pSessions.Remove(session); } }
/// <summary> /// Adds specified session to sessions collection. /// </summary> /// <param name="session">Session to add.</param> internal protected void AddSession(SocketServerSession session) { lock(m_pSessions){ m_pSessions.Add(session); } }
/// <summary> /// Adds specified session to sessions collection. /// </summary> /// <param name="session">Session to add.</param> internal protected void AddSession(SocketServerSession session) { lock (m_pSessions){ m_pSessions.Add(session); } }