namespace ServerLib.Service; public class SessionManager { public Dictionary Sessions { get; } public SessionManager() { Sessions = new Dictionary(); } public void AddSession(Session session) { Sessions.Add(session.GetHashCode(), session); } public void RemoveSession(Session session) { Sessions.Remove(session.GetHashCode()); } }