public void OnJobDone(JobDoneArgs args) { this.JobDone?.Invoke(this, args); }
public void FinishedJob(object sender, JobDoneArgs args) { Console.WriteLine($"Job {args.Job.Name} done!"); this.jobs.Remove(args.Job); }