public override void AddJob(Job job)
		{
			JobNames.Add(job.Name);
			ISchedulerFactory schedulerFactory = new StdSchedulerFactory(Common.Properties.QuartzSchedulerProperties);
			IScheduler scheduler = schedulerFactory.GetScheduler();
			JobDetail jobDetail = new JobDetail(job.Name, "sequential", job.GetType(), false, true, true);
			jobDetail.JobDataMap = job.JobDataMap;
			
			scheduler.AddJob(jobDetail, true);
		}
		public override void Execute(Job job)
		{
			Instances.MainCounterStore.Increment(new Caching.CacheKey(Caching.CacheKeyPrefix.JobQueued, Timeslots.GetCurrentTimeslot().StartTime.ToString()), () => 0);
			JobDetail jobDetail = new JobDetail(job.Name, "immediate", job.GetType());
			jobDetail.JobDataMap = job.JobDataMap;
			SimpleTrigger trigger = new SimpleTrigger("Trigger" + job.Name, "immediate");
			ISchedulerFactory schedulerFactory = new StdSchedulerFactory(Common.Properties.QuartzSchedulerProperties);
			IScheduler scheduler = schedulerFactory.GetScheduler();
			scheduler.ScheduleJob(jobDetail, trigger);
			
		}
		public override void AddJob(Job job)
		{
			jobs.Add(job);
		}
		public DependentJobStoreUsingQuartz(Job parentJob)
		{
			ParentJob = parentJob;
		}
Exemplo n.º 5
0
		public abstract void AddJob(Job job);
		public override void Execute(Job job)
		{
			System.Threading.Thread thread = Utilities.GetSafeThread(() => job.ExecuteSynchronously());
			thread.Start();
		}
Exemplo n.º 7
0
		public abstract void Execute(Job job);
Exemplo n.º 8
0
		internal void AddJobToRunOnceFinished(Job job)
		{
			DependentJobStore.AddJob(job);
		}