コード例 #1
0
 protected virtual void BeginExecution(IntervalJob intervalJob)
 {
     if (intervalJob.CurrentlyExecuting)
     {
         return;
     }
     lock (_lockObject)
     {
         try
         {
             intervalJob.SetCurrentlyExecutingFlag(true);
             ExecuteJob(intervalJob);
         }
         finally
         {
             intervalJob.SetCurrentlyExecutingFlag(false);
         }
     }
 }
コード例 #2
0
 protected abstract void ExecuteJob(IntervalJob intervalJob);