コード例 #1
0
 private void EventManagerJobStarted(object sender, IJob e)
 {
     Task.Run(() =>
     {
         var job = (JobCreatedEventArgs)e;
         _dataCollection.JobStarted(job.JobDetail);
     });
 }
コード例 #2
0
 private void EventManagerJobCompleted(object sender, IJob e)
 {
     Task.Run(() =>
     {
         var job = (JobCompletedEventArgs)e;
         job.JobDetail.CompletedAt = DateTime.UtcNow;
         _dataCollection.JobCompleted(job.JobDetail, job.Results);
     });
 }