Example #1
0
        public ComputedCronJob(CronJob job)
        {
            Job = job;

            Schedule = CrontabSchedule.Parse(job.Cron);
            if (job.TypeName != null)
            {
                JobType = Type.GetType(job.TypeName);
            }
        }
Example #2
0
        private ComputedCronJob CreateComputedCronJob(CronJob job, CronJobRegistry.Entry[] entries)
        {
            var entry = entries.First(e => e.Name == job.Name);

            return(new ComputedCronJob(job, entry));
        }
Example #3
0
 public ComputedCronJob(CronJob job, CronJobRegistry.Entry entry)
     : this(job)
 {
     _entry = entry;
 }