Exemplo n.º 1
0
 protected virtual void BeginExecution(DailyJob scheduledJob)
 {
     if (scheduledJob.CurrentlyExecuting)
     {
         return;
     }
     lock (_lockObject)
     {
         try
         {
             scheduledJob.SetCurrentlyExecutingFlag(true);
             ExecuteJob(scheduledJob);
         }
         finally
         {
             scheduledJob.SetCurrentlyExecutingFlag(false);
         }
     }
 }
Exemplo n.º 2
0
 protected abstract void ExecuteJob(DailyJob scheduledJob);