public static TriggerBuilder WithItinerarySchedule(this TriggerBuilder triggerBuilder, ISchedule schedule, DateTime rangeStart, Action <ItineraryScheduleBuilder> action)
        {
            var builder = ItineraryScheduleBuilder.ItinerarySchedule(schedule, rangeStart);

            action(builder);
            return(triggerBuilder.WithSchedule(builder));
        }
        public override IScheduleBuilder GetScheduleBuilder()
        {
            ItineraryScheduleBuilder scheduleBuilder = ItineraryScheduleBuilder.ItinerarySchedule(schedule);

            switch (MisfireInstruction)
            {
            case ItineraryTriggerMisfireInstruction.DoNothing:
                scheduleBuilder.WithMisfireHandlingInstructionDoNothing();
                break;

            case ItineraryTriggerMisfireInstruction.FireOnceNow:
                scheduleBuilder.WithMisfireHandlingInstructionFireAndProceed();
                break;
            }

            return(scheduleBuilder);
        }