Unit of time in months.
        /// <summary>
        /// Delays the job for the given interval.
        /// </summary>
        /// <param name="unit">The schedule being affected.</param>
        /// <param name="interval">Interval to wait.</param>
        public static DelayTimeUnit DelayFor(this MonthUnit unit, int interval)
        {
            if (unit == null)
            {
                throw new ArgumentNullException("unit");
            }

            return(DelayFor(unit.Schedule, interval));
        }
示例#2
0
 /// <summary>
 /// Delay first execution of the task for the specified time interval.
 /// </summary>
 public static DelayTimeUnit DelayFor(this MonthUnit timeUnit, int interval)
 {
     return(DelayFor(timeUnit.Schedule, interval));
 }