public StatisticsInfo GetStatisticsInfo() { return(new StatisticsInfo() { ActiveSessionsCount = _gameSessions.Sessions.Count, ActiveGamesCount = _gameSessions.Games.Count, RegistredUsersCount = _userDataAccessService.Count(), ServerStartDateTime = ServerStartTime, ServerUptime = DateTime.Now - ServerStartTime, PerformanceInfo = _gameSessions.PerformanceInfo, ResourcesUsageInfo = new ResourcesUsageInfo() { CpuUsed = _performanceHelper.CpuUsage, MemoryAvailable = _performanceHelper.MemoryUsage, MemoryUsedByProcess = _performanceHelper.MemoryUsageByProcess }, SystemInfo = _systemInfo }); }