Пример #1
0
        public async Task <IReadOnlyCollection <SessionInfoDto> > GetAllRecentSessionInfoAsync()
        {
            try
            {
                return(await Task.Run(() => _telemetryRepository.GetAllRecentSessions()));
            }
            catch (Exception ex)
            {
                Logger.Error(ex, "Error while loading recent sessions");
            }

            return(Enumerable.Empty <SessionInfoDto>().ToList().AsReadOnly());
        }