Unit of time in years.
        /// <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 YearUnit 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 YearUnit timeUnit, int interval)
 {
     return(DelayFor(timeUnit.Schedule, interval));
 }