first commit

This commit is contained in:
qornwh1
2026-02-28 14:16:07 +09:00
commit 30457819b1
28 changed files with 3006 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
namespace ServerLib.Service;
public class SessionManager
{
public Dictionary<int, Session> Sessions
{
get;
}
public SessionManager()
{
Sessions = new Dictionary<int, Session>();
}
public void AddSession(Session session)
{
Sessions.Add(session.GetHashCode(), session);
}
public void RemoveSession(Session session)
{
Sessions.Remove(session.GetHashCode());
}
}