コード例 #1
0
 public StatusDto Run(string jobId)
 {
     try {
         _reqh.Run(jobId);
         return(StatusDto.Success);
     }
     catch (Exception ex) {
         return(StatusDto.Failure($"Failed to run job with id '{jobId}'! Reason: {ex}"));
     }
 }
コード例 #2
0
 public StatusDto RunAllDue()
 {
     try {
         _reqh.RunAllDue();
         return(StatusDto.Success);
     }
     catch (Exception ex) {
         return(StatusDto.Failure($"Failed to run due jobs! Reason: {ex}"));
     }
 }