Esempio n. 1
0
 public override async Task Execute()
 {
     try
     {
         await _periodicalService.UpdateBroadcasts();
     }
     catch (Exception ex)
     {
         await _log.WriteErrorAsync(nameof(BroadcastHandler), nameof(Execute),
                                    "Failed to update broadcasts", ex);
     }
 }
Esempio n. 2
0
 public override async Task Execute()
 {
     try
     {
         await _periodicalService.UpdateBroadcasts();
     }
     catch (Exception ex)
     {
         if (_disableErrorsSending == true)
         {
             _log.Debug("Failed to update broadcasts", exception: ex);
         }
         else
         {
             _log.Error(ex, "Failed to update broadcasts");
         }
     }
 }