Ejemplo n.º 1
0
        private ITrigger CreateTrigger(ISchedulingPlan plan, IJobDetail job)
        {
            var visitor = new SchedulingTriggerVisitor(job);

            plan.Accept(visitor);
            return(visitor.Trigger);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
0
 public void RemoveJob(Framework.Abstraction.Services.Scheduling.IJob job, ISchedulingPlan plan)
 => throw new NotImplementedException();