Example #1
0
 public Task Stop(CancellationToken cancellationToken = default)
 {
     if (!quartzScheduler.InStandbyMode)
     {
         logger.LogInformation("Stopping scheduler...");
         return(quartzScheduler.Standby(cancellationToken));
     }
     return(Task.CompletedTask);
 }