public BackgroundOperationCall(int minute, int hour, int day, int month, BackgroundOperationDaysOfWeek weekDay) { string reg = (minute == -1 ? ".{2}" : minute.ToString("00")) + " " + (hour == -1 ? ".{2}" : hour.ToString("00")) + " " + (day == -1 ? ".{2}" : day.ToString("00")) + " " + (month == -1 ? ".{2}" : month.ToString("00")) + " "; if (weekDay == BackgroundOperationDaysOfWeek.All) reg += ".{3}"; else reg += weekDay.ToString().Substring(0, 3); _regMatch = new Regex(reg, RegexOptions.Compiled | RegexOptions.ECMAScript); }
public BackgroundOperationCall(int minute, int hour, int day, int month, BackgroundOperationDaysOfWeek weekDay,int maxRunMilliseconds) : this(minute,hour,day,month,weekDay) { _maxRunTime = maxRunMilliseconds; }