Пример #1
0
 private void RestartScheduler()
 {
     Task.Run(() =>
     {
         try
         {
             schedulerManager.RestartAsync(CancellationToken.None);
         }
         catch (Exception ex)
         {
             logger.LogError(ex, "Restarting of scheduler failed.");
         }
     });
 }