示例#1
0
 private void OnStartJob(Job job, JobConfiguration config)
 {
     if (_compare.StartJob(job, config))
     {
         job.JobState     = Jobs.JobState.Running;
         job.LastExecuted = DateTime.Now;
         _repository.Update(job).GetAwaiter().GetResult();
     }
 }