예제 #1
0
 public virtual void JobWasAdded()
 {
     if (IsActive)
     {
         AcquireJobsRunnable.JobWasAdded();
     }
 }
예제 #2
0
 public virtual void Shutdown()
 {
     lock (this)
     {
         if (!IsActive)
         {
             return;
         }
         _log.ShuttingDownTheJobExecutor(GetType().FullName);
         AcquireJobsRunnable.Stop();
         StopExecutingJobs();
         EnsureCleanup();
         IsActive = false;
     }
 }