protected NaiveCronExpressionBase(NaiveRule minute, NaiveRule hour, NaiveRule day, NaiveRule month, NaiveRule week)
        {
#if !ALLOC_DIAG
            if (minute.IsEmpty || hour.IsEmpty || day.IsEmpty || month.IsEmpty || week.IsEmpty)
            {
                throw new ArgumentException("Empty rule");
            }

            minuteRule = minute ?? throw new ArgumentNullException(nameof(minute));
            hourRule   = hour ?? throw new ArgumentNullException(nameof(hour));
            dayRule    = day ?? throw new ArgumentNullException(nameof(day));
            monthRule  = month ?? throw new ArgumentNullException(nameof(month));
            weekRule   = week ?? throw new ArgumentNullException(nameof(week));
#endif
        }
Example #2
0
 protected NaiveCron(NaiveRule minute, NaiveRule hour, NaiveRule day, NaiveRule month, NaiveRule week)
     : base(minute, hour, day, month, week)
 {
 }
 protected UnsafeForwardOnlyCron(NaiveRule minute, NaiveRule hour, NaiveRule day, NaiveRule month, NaiveRule week)
     : base(minute, hour, day, month, week)
 {
 }