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

            return(DateTime.UnixEpoch.AddSeconds(epoch));
        }