public DateTime GetExposureConfigurationDownloadedDateTime() { _loggerService.StartMethod(); try { long epoch = _preferencesService.GetLongValue(PreferenceKey.ExposureConfigurationDownloadedEpoch, 0L); return(DateTime.UnixEpoch.AddSeconds(epoch)); } finally { _loggerService.EndMethod(); } }
public DateTime GetStartDate() { long epoch = _preferencesService.GetLongValue(PreferenceKey.StartDateTimeEpoch, DateTime.UtcNow.ToUnixEpoch()); return(DateTime.UnixEpoch.AddSeconds(epoch)); }