Exemplo n.º 1
0
 private void ScheduleSystemWakeTimer(DateTime startDate, string displayName)
 {
     try
     {
         _powerManagement.ScheduleWake(startDate.AddMinutes(-5), displayName);
     }
     catch (Exception ex)
     {
         _logger.ErrorException("Error scheduling wake timer", ex);
     }
 }
Exemplo n.º 2
0
        private void ScheduleWake(TimerInfo info)
        {
            var startDate = RecordingHelper.GetStartTime(info).AddMinutes(-5);

            try
            {
                _powerManagement.ScheduleWake(startDate);
                _logger.Info("Scheduled system wake timer at {0} (UTC)", startDate);
            }
            catch (NotImplementedException)
            {
            }
            catch (Exception ex)
            {
                _logger.ErrorException("Error scheduling wake timer", ex);
            }
        }