示例#1
0
 protected override BatchJobExecutionResult OnExecute(ImportProductBatchJob batchJob)
 {
     using (new NotificationDisabler())
     {
         try
         {
             _importProductsService.ImportProduct(batchJob.DTO);
             return(BatchJobExecutionResult.Success());
         }
         catch (Exception exception)
         {
             CurrentRequestData.ErrorSignal.Raise(exception);
             return(BatchJobExecutionResult.Failure(exception.Message));
         }
     }
 }