private void EventManagerJobStarted(object sender, IJob e) { Task.Run(() => { var job = (JobCreatedEventArgs)e; _dataCollection.JobStarted(job.JobDetail); }); }
private void EventManagerJobCompleted(object sender, IJob e) { Task.Run(() => { var job = (JobCompletedEventArgs)e; job.JobDetail.CompletedAt = DateTime.UtcNow; _dataCollection.JobCompleted(job.JobDetail, job.Results); }); }