Exemplo n.º 1
0
        public static TriggerBuilder WithCalendarIntervalSchedule(this TriggerBuilder triggerBuilder, Action <CalendarIntervalScheduleBuilder> action)
        {
            CalendarIntervalScheduleBuilder builder = CalendarIntervalScheduleBuilder.Create();

            action(builder);
            return(triggerBuilder.WithSchedule(builder));
        }
Exemplo n.º 2
0
        public static IServiceCollectionTriggerConfigurator WithCalendarIntervalSchedule(this IServiceCollectionTriggerConfigurator triggerBuilder, Action <CalendarIntervalScheduleBuilder>?action = null)
        {
            CalendarIntervalScheduleBuilder builder = CalendarIntervalScheduleBuilder.Create();

            action?.Invoke(builder);
            triggerBuilder.WithSchedule(builder);
            return(triggerBuilder);
        }
Exemplo n.º 3
0
 public static IServiceCollectionTriggerConfigurator WithCalendarIntervalSchedule(this IServiceCollectionTriggerConfigurator triggerBuilder, CalendarIntervalScheduleBuilder schedule)
 {
     triggerBuilder.WithSchedule(schedule);
     return(triggerBuilder);
 }