public async Task ScheduleJob( JobSetup jobSetup, CancellationToken cancellationToken = default) { Check.NotNull(nameof(jobSetup), jobSetup); await this.Scheduler.ScheduleJob( jobSetup.JobDetail, jobSetup.Trigger, cancellationToken) .ConfigureAwait(false); }
public QuartzServiceBuilderOptions AddJob(JobSetup jobSetup) { this.InitialJobs.Add(jobSetup); return(this); }