예제 #1
0
        /// <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);
        }
예제 #2
0
        protected virtual CM_Job MakeJob(CM_Job job)
        {
            job.NotifyOnJobComplete(HandlejobComplete);

            return(job);
        }