private void DisposeSession(Guid guid) { RSession session; if (_sessions.TryRemove(guid, out session)) { session.Connected -= RSessionOnConnected; } }