Unit of time in hours.
상속: ITimeRestrictableUnit
        /// <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 HourUnit 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 HourUnit timeUnit, int interval)
 {
     return(DelayFor(timeUnit.Schedule, interval));
 }