/// <summary> /// Enqueues the specified job. /// </summary> /// <param name="job">Job.</param> public CM_JobQueue Enqueue(CM_Job job) { job.NotifyOnJobComplete(HandlejobComplete); AddJobToQueue(job); if (_continousRunning && _jobQueue.Count == 1) { _jobQueue.Peek().Start(); } return(this); }
protected virtual CM_Job MakeJob(CM_Job job) { job.NotifyOnJobComplete(HandlejobComplete); return(job); }