Exemplo n.º 1
0
        public CronExpression(IRange nanoseconds, IRange microseconds, IRange milliseconds, IRange seconds, IRange minutes, IRange hours, IDayRange daysOfMonth, IRange months, IDayRange daysOfWeek, IRange years, TimeSpan offset)
        {
            if (daysOfMonth != null && daysOfWeek != null)
            {
                throw new NotSupportedException();
            }

            _nanoseconds = nanoseconds;
            _microseconds = microseconds;
            _milliseconds = milliseconds;
            _seconds = seconds;
            _minutes = minutes;
            _hours = hours;
            _days = daysOfMonth ?? daysOfWeek;
            _months = months;
            _years = years;
            _offset = offset;
        }
Exemplo n.º 2
0
 public CronExpression(IRange nanoseconds, IRange microseconds, IRange milliseconds, IRange seconds, IRange minutes, IRange hours, IDayRange daysOfMonth, IRange months, IDayRange daysOfWeek, IRange years)
     : this(nanoseconds, microseconds, milliseconds, seconds, minutes, hours, daysOfMonth, months, daysOfWeek, years, TimeSpan.Zero)
 {
 }
Exemplo n.º 3
0
 public CronExpression(IRange nanoseconds, IRange microseconds, IRange milliseconds, IRange seconds, IRange minutes, IRange hours, IDayRange daysOfMonth, IRange months, IDayRange daysOfWeek, TimeSpan offset)
     : this(nanoseconds, microseconds, milliseconds, seconds, minutes, hours, daysOfMonth, months, daysOfWeek, null, offset)
 {
 }