public bool CloseSession() { var sessionId = _operationContextHelper.Instance.SessionId ?? default(Guid); var session = _gameSessions.GetSession(sessionId); if (session == null) { return(false); } _gameSessions.RemoveSession(sessionId); _logger.Info("EntityFX.EconomicsArcade.Manager.SessionManager.CloseSession: Session {0} closed", sessionId); return(true); }
public void CloseSessionByGuid(Guid guid) { _gameSessions.RemoveSession(guid); }