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

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