protected override ITrigger GetTrigger() { var connectionString = ConfigurationManager.ConnectionStrings["MisConnectionString"].ConnectionString; var cron = ConstValue.GetCron(connectionString, "ExistsImageJobCron"); if (string.IsNullOrEmpty(cron)) { return(null); } var trigger = TriggerBuilder.Create() .WithIdentity(JobName, GroupName) .WithCronSchedule(cron) .Build(); return(trigger); }