Пример #1
0
        public async Task <SessionInfoDto> LoadLastSessionAsync()
        {
            try
            {
                string sessionIdent = _telemetryRepository.GetLastRecentSessionIdentifier();
                if (string.IsNullOrEmpty(sessionIdent))
                {
                    return(null);
                }

                return(await LoadRecentSessionAsync(sessionIdent));
            }
            catch (Exception ex)
            {
                Logger.Error(ex, "Error while loading last session");
            }

            return(null);
        }