Exemple #1
0
 private void Process(IJob job)
 {
     try
     {
         job.Perform();
         SetProcessed();
     }
     catch (Exception ex)
     {
         try
         {
             job.Failed(ex);
         }
         catch (Exception)
         {
         }
         SetFailed();
     }
 }
Exemple #2
0
 private void Process(IJob job)
 {
     try
     {
         job.Perform();
         SetProcessed();
     }
     catch (Exception ex)
     {
         try
         {
             job.Failed(ex);
         }
         catch (Exception)
         {
         }
         SetFailed();
     }
 }