Example #1
0
 private static ITrigger CreateTrigger(JobOptions options)
 {
     return(TriggerBuilder
            .Create()
            .WithIdentity($"{options.JobType.FullName}.trigger")
            .WithCronSchedule(options.CronExpression)
            .WithDescription(options.CronExpression)
            .Build());
 }
Example #2
0
        private static IJobDetail CreateJob(JobOptions options)
        {
            var jobType = options.JobType;

            return(JobBuilder
                   .Create(jobType)
                   .WithIdentity(jobType.FullName)
                   .WithDescription(jobType.Name)
                   .Build());
        }