Esempio n. 1
0
        public static CronHelper EveryMonth(byte[] days, byte[] hours, byte[] minutes, byte[] seconds)
        {
            CronHelper result = new CronHelper(
                SecondValueHolder.FromArray(seconds),
                MinuteValueHolder.FromArray(minutes),
                HourValueHolder.FromArray(hours),
                DayValueHolder.FromArray(days),
                WeekValueHolder.FromUnknow(),
                MonthValueHolder.FromAll(),
                YearValueHolder.FromAll());

            return(result);
        }
Esempio n. 2
0
        public static CronHelper FromTimes(ushort[] years, byte[] months, byte[] days, byte[] hours, byte[] minutes, byte[] seconds)
        {
            CronHelper result = new CronHelper(
                SecondValueHolder.FromArray(seconds),
                MinuteValueHolder.FromArray(minutes),
                HourValueHolder.FromArray(hours),
                DayValueHolder.FromArray(days),
                WeekValueHolder.FromUnknow(),
                MonthValueHolder.FromArray(months),
                YearValueHolder.FromArray(years));

            return(result);
        }
Esempio n. 3
0
 public CronHelper(SecondValueHolder secondValue, MinuteValueHolder minuteValue, HourValueHolder hourValue, DayValueHolder dayValue, WeekValueHolder weekValue, MonthValueHolder monthValue, YearValueHolder yearValue)
 {
     this.SecondValue = secondValue;
     this.MinuteValue = minuteValue;
     this.HourValue   = hourValue;
     this.DayValue    = dayValue;
     this.WeekValue   = weekValue;
     this.MonthValue  = monthValue;
     this.YearValue   = yearValue;
 }