protected void UpdateJobStatus(TJob job, JobStatus status) { Log.Debug($"Scheduler UpdateJobStatus {job.Name} -> {status}"); var oldStatus = job.Status; if (oldStatus != status) { job.Status = status; ExecuteSafely(() => JobStatusChanged?.Invoke(job, oldStatus, job.Status)); } }
public static void OnJobStatusChanged(object sender, JobStatus e) { JobStatusChanged?.Invoke(sender, e); }