Exemple #1
0
 public IActionResult ForceJob(JobTypeEnum?jobType)
 {
     if (jobType == null)
     {
         throw new Exception($"JobType '{ControllerContext.RouteData.Values[nameof(jobType)]}' is not defined.");
     }
     QuartzScheduler.ForceJobExecution(jobType.Value);
     return(Ok("Task started ..."));
 }