Ejemplo n.º 1
0
        public void Handle(JobCreated message)
        {
            SchedulerJob job = jobRepository.GetById(message.JobId);

            lock (jobs)
            {
                jobs.Add(job);
            }
        }
Ejemplo n.º 2
0
        public void Handle(JobDisabled message)
        {
            List <SchedulerJob> jobs = new List <SchedulerJob>(this.jobs);
            SchedulerJob        job  = jobs.Where(x => x.Id == message.JobId).SingleOrDefault();

            lock (jobs)
            {
                if (job != null)
                {
                    jobs.Remove(job);
                }
            }
        }
 public SchedulerJobRequestEventArgs(SchedulerJob job)
 {
     this.Job = job;
 }
Ejemplo n.º 4
0
 public override void Submit(SchedulerJob job)
 {
     base.Submit(job);
 }
Ejemplo n.º 5
0
 public void Submit(SchedulerJob job)
 {
     jobRequestQueue.Submit(job);
     OnJobSubmitted(this, new SchedulerJobRequestEventArgs(job));
 }
Ejemplo n.º 6
0
 public virtual void Submit(SchedulerJob job)
 {
     OnJobSubmitted(this, new SchedulerJobRequestEventArgs(job));
 }