Пример #1
0
        public static TriggerBuilder WithCronSchedule(this TriggerBuilder triggerBuilder, string cronExpression)
        {
            CronScheduleBuilder builder = CronScheduleBuilder.CronSchedule(cronExpression);

            return(triggerBuilder.WithSchedule(builder));
        }
Пример #2
0
 public static IServiceCollectionTriggerConfigurator WithCronSchedule(this IServiceCollectionTriggerConfigurator triggerBuilder, CronScheduleBuilder schedule)
 {
     triggerBuilder.WithSchedule(schedule);
     return(triggerBuilder);
 }