Unit of time in seconds.
Inheritance: 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 SecondUnit unit, int interval)
        {
            if (unit == null)
            {
                throw new ArgumentNullException("unit");
            }

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