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