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

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