public void AddSession(AbstractEditSession session) { lock (_syncObj) { _sessions.Add(session.SessionId, session); } }
public void DelSession(AbstractEditSession session) { lock (_syncObj) { // Clean up session.Dispose(); _sessions.Remove(session.SessionId); } }