Esempio n. 1
0
        public void AddJob(Framework.Abstraction.Services.Scheduling.IJob job, ISchedulingPlan plan)
        {
            var quartzJob = CreateJob(job);
            var trigger   = CreateTrigger(plan, quartzJob);

            _scheduler.ScheduleJob(quartzJob, trigger);
        }
Esempio n. 2
0
        private IJobDetail CreateJob(Framework.Abstraction.Services.Scheduling.IJob job)
        {
            var jobDetail = new JobDetailImpl("GenericJob", typeof(GenericJob));

            jobDetail.JobDataMap["Job"] = job;
            jobDetail.Name = job.Name;
            return(jobDetail);
        }
Esempio n. 3
0
 public void RemoveJob(Framework.Abstraction.Services.Scheduling.IJob job, ISchedulingPlan plan)
 => throw new NotImplementedException();