/// <summary>
        ///     Creates a new session.
        /// </summary>
        internal static NetGlobalChatSession Create(byte[] sessionId)
        {
            NetGlobalChatSession session = new NetGlobalChatSession(sessionId);

            NetGlobalChatSessionManager._sessions.Add(sessionId, session);
            return(session);
        }
        /// <summary>
        ///     Tries to remove the specified session.
        /// </summary>
        internal static bool TryRemove(byte[] sessionId, out NetGlobalChatSession session)
        {
            if (NetGlobalChatSessionManager._sessions.TryGetValue(sessionId, out session))
            {
                return(NetGlobalChatSessionManager._sessions.Remove(sessionId));
            }

            return(false);
        }
 /// <summary>
 ///     Tries to get the specified session.
 /// </summary>
 internal static bool TryGet(byte[] sessionId, out NetGlobalChatSession session)
 {
     return(NetGlobalChatSessionManager._sessions.TryGetValue(sessionId, out session));
 }