protected CronExpression(int interval, CronExpressionType expressionType)
        {
            _interval = interval;
            _expressionType = expressionType;

            BuildCronExpression();
        }
Example #2
0
        protected CronExpression(int interval, CronExpressionType expressionType)
        {
            _interval       = interval;
            _expressionType = expressionType;

            BuildCronExpression();
        }
        protected CronExpression(int startHour, int startMinute, CronExpressionType expressionType)
        {
            _startHour = startHour;
            _startMinute = startMinute;
            _expressionType = expressionType;

            BuildCronExpression();
        }
Example #4
0
        protected CronExpression(int startHour, int startMinute, CronExpressionType expressionType)
        {
            _startHour      = startHour;
            _startMinute    = startMinute;
            _expressionType = expressionType;

            BuildCronExpression();
        }
Example #5
0
        public CronExpression(IEnumerable <int> dayNumbers, int hour, int minute, CronExpressionType expressionType)
        {
            _dayNumbers     = dayNumbers.ToList();
            _startHour      = hour;
            _startMinute    = minute;
            _expressionType = expressionType;

            BuildCronExpression();
        }
Example #6
0
        protected QuartzCronExpression(int interval, int startHour, int startMinute, CronExpressionType expressionType)
        {
            _interval       = interval;
            _startHour      = startHour;
            _startMinute    = startMinute;
            _expressionType = expressionType;

            BuildCronExpression();
        }
Example #7
0
        protected CronExpression(DaysOfWeek days, int startHour, int startMinute, CronExpressionType expressionType)
        {
            _days           = days;
            _startHour      = startHour;
            _startMinute    = startMinute;
            _expressionType = expressionType;

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

            BuildCronExpression();
        }
Example #9
0
        protected CronExpression(string[] days, int startHour, int startMinute, CronExpressionType expressionType)
        {
            daysStringFormat = days;
            _startHour       = startHour;
            _startMinute     = startMinute;
            _expressionType  = expressionType;

            BuildCronExpression();
        }
Example #10
0
        protected CronExpression(Months month, int dayNumber, int startHour, int startMinute, CronExpressionType expressionType)
        {
            _month          = month;
            _dayNumber      = dayNumber;
            _startHour      = startHour;
            _startMinute    = startMinute;
            _expressionType = expressionType;

            BuildCronExpression();
        }
Example #11
0
        protected CronExpression(int dayNumber, int interval, int startHour, int startMinute, CronExpressionType expressionType)
        {
            _dayNumber      = dayNumber;
            _interval       = interval;
            _startHour      = startHour;
            _startMinute    = startMinute;
            _expressionType = expressionType;

            BuildCronExpression();
        }
Example #12
0
        protected QuartzCronExpression(int dayNumber, Months months, int startHour, int startMinute, CronExpressionType expressionType)
        {
            _dayNumber      = dayNumber;
            _months         = months;
            _startHour      = startHour;
            _startMinute    = startMinute;
            _expressionType = expressionType;

            BuildCronExpression();
        }
        protected CronExpression(Months month, int dayNumber, int startHour, int startMinute, CronExpressionType expressionType)
        {
            _month = month;
            _dayNumber = dayNumber;
            _startHour = startHour;
            _startMinute = startMinute;
            _expressionType = expressionType;

            BuildCronExpression();
        }
        protected CronExpression(int dayNumber, int interval, int startHour, int startMinute, CronExpressionType expressionType)
        {
            _dayNumber = dayNumber;
            _interval = interval;
            _startHour = startHour;
            _startMinute = startMinute;
            _expressionType = expressionType;

            BuildCronExpression();
        }
Example #15
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();
        }
Example #16
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();
        }
        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();
        }
Example #18
0
        protected QuartzCronExpression(int secondNumber, int startMinute, int startHour, int dayNumber, int monthNumber, int yearNumber, CronExpressionType expressionType)
        {
            _startSecond    = secondNumber;
            _startMinute    = startMinute;
            _startHour      = startHour;
            _dayNumber      = dayNumber;
            _months         = MonthsHelper.GetfromMonthNumber(monthNumber);
            _yearNumber     = yearNumber;
            _expressionType = expressionType;

            BuildCronExpression();
        }
Example #19
0
        protected CronExpression(IEnumerable <string> days, int startHour, int startMinute, CronExpressionType expressionType)
        {
            var tempDays = days.Select(x => Enum.Parse <DaysOfWeek>(x));

            foreach (var day in tempDays)
            {
                _days = day | _days;
            }
            _startHour      = startHour;
            _startMinute    = startMinute;
            _expressionType = expressionType;

            BuildCronExpression();
        }
 public string GetNameByCronType(CronExpressionType type)
 {
     return(cronExpressionTypesReadable.GetEnumItemName(type));
 }
        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();
        }