コード例 #1
0
 private IJobDetail CreateJob(JobMetadata jobMetadata)
 {
     return(JobBuilder.Create(jobMetadata.JobType)
            .WithIdentity(jobMetadata.JobId.ToString())
            .WithDescription(jobMetadata.JobName)
            .Build());
 }
コード例 #2
0
 private ITrigger CreateTrigger(JobMetadata jobMetadata)
 {
     return(TriggerBuilder.Create()
            .WithIdentity(jobMetadata.JobId.ToString())
            .WithCronSchedule(jobMetadata.CronExpression)
            .WithDescription(jobMetadata.JobName)
            .Build());
 }