Esempio n. 1
0
        protected CronExpression(DaySeqNumber dayNumber, DaysOfWeek days, Months month, int startHour, int startMinute, CronExpressionType expressionType)
        {
            _dayNumber      = (int)dayNumber;
            _days           = days;
            _month          = month;
            _startHour      = startHour;
            _startMinute    = startMinute;
            _expressionType = expressionType;

            BuildCronExpression();
        }
Esempio n. 2
0
        protected CronExpression(DaySeqNumber dayNumber, DaysOfWeek days, int monthInverval, int startHour, int startMinute, CronExpressionType expressionType)
        {
            _dayNumber      = (int)dayNumber;
            _days           = days;
            _interval       = monthInverval;
            _startHour      = startHour;
            _startMinute    = startMinute;
            _expressionType = expressionType;

            BuildCronExpression();
        }
        protected CronExpression(DaySeqNumber dayNumber, DaysOfWeek days, int monthInverval, int startHour, int startMinute, CronExpressionType expressionType)
        {
            _dayNumber = (int)dayNumber;
            _days = days;
            _interval = monthInverval;
            _startHour = startHour;
            _startMinute = startMinute;
            _expressionType = expressionType;

            BuildCronExpression();
        }
Esempio n. 4
0
        /// <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 CronExpression EverySpecificSeqWeekDayOfMonthAt(DaySeqNumber dayNumber, DaysOfWeek days, Months month, int hour, int minute)
        {
            var ce = new CronExpression(dayNumber, days, month, hour, minute, CronExpressionType.EverySpecificSeqWeekDayOfMonthAt);

            return(ce);
        }
Esempio n. 5
0
        // TODO Add comments
        /// <summary>
        /// Create new CronExpression instance, which occurs on every first,
        /// second, third or fourth day of the week each *monthInterval* months
        /// at specified hours
        /// </summary>
        /// <param name="dayNumber">Day sequental number (first, second, third, fourth)</param>
        /// <param name="days">Day of week</param>
        /// <param name="monthInverval">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 EverySpecificSeqWeekDayEveryNMonthAt(DaySeqNumber daySeqNumber, DaysOfWeek days, int monthInverval, int hour, int minute)
        {
            var ce = new QuartzCronExpression(daySeqNumber, days, monthInverval, hour, minute, CronExpressionType.EverySpecificSeqWeekDayEveryNMonthAt);

            return(ce);
        }
        protected CronExpression(DaySeqNumber dayNumber, DaysOfWeek days, Months month, int startHour, int startMinute, CronExpressionType expressionType)
        {
            _dayNumber = (int)dayNumber;
            _days = days;
            _month = month;
            _startHour = startHour;
            _startMinute = startMinute;
            _expressionType = expressionType;

            BuildCronExpression();
        }
 /// <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 CronExpression EverySpecificSeqWeekDayOfMonthAt(DaySeqNumber dayNumber, DaysOfWeek days, Months month, int hour, int minute)
 {
     var ce = new CronExpression(dayNumber, days, month, hour, minute, CronExpressionType.EverySpecificSeqWeekDayOfMonthAt);
     return ce;
 }