/// <summary> /// Create new CronExpression instance, which occurs on specific day /// at specific hour /// </summary> /// <param name="dateTime">Date and time</param> /// <returns>New CronExpression instance</returns> public static QuartzCronExpression SpecificDateAt(DateTime dateTime) { var ce = new QuartzCronExpression( dateTime.Second, dateTime.Minute, dateTime.Hour, dateTime.Day, dateTime.Month, dateTime.Year, CronExpressionType.SpecificDateAt); return(ce); }
/// <summary> /// Create new CronExpression instance, which occurs on every specific day *dayNumber* of /// specific month *month* at specified hours /// </summary> /// <param name="month">Month</param> /// <param name="dayNumber">Day number</param> /// <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 QuartzCronExpression EverySpecificDayOfMonthAt(Months month, int dayNumber, int hour, int minute) { var ce = new QuartzCronExpression(month, dayNumber, hour, minute, CronExpressionType.EverySpecificDayOfMonthsAt); return(ce); }
/// <summary> /// Create new CronExpression instance, which occurs on every first, /// second, third or fourth day of the week on specific month *month* /// at specified hours /// </summary> /// <param name="dayNumber">Day sequental number (first, second, third, fourth)</param> /// <param name="days">Day of week</param> /// <param name="month">Month</param> /// <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 QuartzCronExpression EverySpecificSeqWeekDayOfMonthAt(DaySeqNumber dayNumber, DaysOfWeek days, Months month, int hour, int minute) { var ce = new QuartzCronExpression(dayNumber, days, month, hour, minute, CronExpressionType.EverySpecificSeqWeekDayOfMonthsAt); return(ce); }
/// <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 QuartzCronExpression EverySpecificWeekDayAt(int hour, int minute, DaysOfWeek days) { var ce = new QuartzCronExpression(days, hour, minute, CronExpressionType.EverySpecificWeekDayAt); return(ce); }
/// <summary> /// Create new CronExpression instance, which occurs every specific day of month /// every *monthInterval* month at specified hours /// </summary> /// <param name="dayNumber">Day of the month, when occurence will happen</param> /// <param name="monthInterval">Interval in months</param> /// <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 QuartzCronExpression EverySpecificDayEveryNMonthAt(int dayNumber, int monthInterval, int hour, int minute) { var ce = new QuartzCronExpression(dayNumber, monthInterval, hour, minute, CronExpressionType.EverySpecificDayEveryNMonthAt); return(ce); }
/// <summary> /// Create new CronExpression instance, which occurs monday to friday 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 QuartzCronExpression EveryWeekDayAt(int hour, int minute) { var ce = new QuartzCronExpression(hour, minute, CronExpressionType.EveryWeekDay); return(ce); }
/// <summary> /// Create new CronExpression instance, which occurs every *daysInterval* days at specified hours /// </summary> /// <param name="daysInterval">Interval in days</param> /// <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 QuartzCronExpression EveryNDaysAt(int daysInterval, int hour, int minute) { var ce = new QuartzCronExpression(daysInterval, hour, minute, CronExpressionType.EveryNDaysAt); 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 QuartzCronExpression EveryNHours(int hoursInterval) { var ce = new QuartzCronExpression(hoursInterval, CronExpressionType.EveryNHours); 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 QuartzCronExpression EveryNMinutes(int minutesInteval) { var ce = new QuartzCronExpression(minutesInteval, CronExpressionType.EveryNMinutes); return(ce); }
/// <summary> /// Create new CronExpression instance, which occurs every *secondInteval* seconds /// </summary> /// <param name="secondsInteval">Interval in seconds</param> /// <returns></returns> public static QuartzCronExpression EveryNSeconds(int secondsInteval) { var ce = new QuartzCronExpression(secondsInteval, CronExpressionType.EveryNSeconds); return(ce); }