/// <summary> /// Create new CronExpression instance, which occurs on specified days at specified hours /// </summary> /// <param name="hour">Hour, when occurence will happen</param> /// <param name="minute">Minute, when occurence will happen</param> /// <param name="days">Days, when occurence will happen</param> /// <returns>New CronExpression instance</returns> public static CronExpressionManager EverySpecificWeekDayAt(int hour, int minute, DaysOfWeek days) { var ce = new CronExpressionManager(days, hour, minute, CronExpressionType.EverySpecificDayAt); return(ce); }
/// <summary> /// Create new CronExpression instance, which occurs every *hoursInterval* hours /// </summary> /// <param name="hoursInterval">Interval in hours</param> /// <returns>New CronExpression instance</returns> public static CronExpressionManager EveryNHours(int hoursInterval) { var ce = new CronExpressionManager(hoursInterval, CronExpressionType.EveryNHours); return(ce); }
/// <summary> /// Create new CronExpression instance, which occurs every day at specified hours /// </summary> /// <param name="hour">Hour, when occurence will happen</param> /// <param name="minute">Minute, when occurence will happen</param> /// <returns>New CronExpression instance</returns> public static CronExpressionManager EveryDayAt(int hour, int minute) { var ce = new CronExpressionManager(1, hour, minute, CronExpressionType.EveryDayAt); return(ce); }
/// <summary> /// Create new CronExpression instance, which occurs every *minutesInteval* minutes /// </summary> /// <param name="minutesInteval">Interval in minutes</param> /// <returns>New CronExpression instance</returns> public static CronExpressionManager EveryNMinutes(int minutesInteval) { var ce = new CronExpressionManager(minutesInteval, CronExpressionType.EveryNMinutes); return(ce); }