Пример #1
0
 private void OperateTaskToken(IDownloadingFile item, Action <IManagedTransporterToken> operation, string errorMessage)
 {
     try
     {
         operation?.Invoke(item.Operations);
     }
     catch
     {
         GlobalMessageQueue.Enqueue(errorMessage);
     }
 }
 private void OperateTaskToken(IDownloadingFile item, Action <IManagedTransporterToken> operation, string errorMessage)
 {
     try
     {
         operation?.Invoke(item.Operations);
     }
     catch (Exception e)
     {
         GlobalMessageQueue.Enqueue(errorMessage);
         Logger.Error($"{errorMessage}: {item.DownloadInfo.Context.LocalPath}", e);
     }
 }