C# Class FluentScheduler.MonthUnit

Unit of time in months.
Show file Open project: fluentscheduler/FluentScheduler Class Usage Examples

Private Properties

Property Type Description
MonthUnit System

Public Methods

Method Description
On ( int day ) : MonthOnDayOfMonthUnit

Runs the job on the given day of the month.

OnTheFirst ( DayOfWeek day ) : MonthOnDayOfWeekUnit

Runs the job on the given day of week on the first week of the month.

OnTheFourth ( DayOfWeek day ) : MonthOnDayOfWeekUnit

Runs the job on the given day of week on the fourth week of the month.

OnTheLast ( DayOfWeek day ) : MonthOnDayOfWeekUnit

Runs the job on the given day of week on the last week of the month.

OnTheLastDay ( ) : MonthOnLastDayOfMonthUnit

Runs the job on the last day of the month.

OnTheSecond ( DayOfWeek day ) : MonthOnDayOfWeekUnit

Runs the job on the given day of week on the second week of the month.

OnTheThird ( DayOfWeek day ) : MonthOnDayOfWeekUnit

Runs the job on the given day of week on the third week of the month.

Private Methods

Method Description
MonthUnit ( Schedule schedule, int duration ) : System

Method Details

On() public method

Runs the job on the given day of the month.
public On ( int day ) : MonthOnDayOfMonthUnit
day int The day (1 through the number of days in month).
return MonthOnDayOfMonthUnit

OnTheFirst() public method

Runs the job on the given day of week on the first week of the month.
public OnTheFirst ( DayOfWeek day ) : MonthOnDayOfWeekUnit
day DayOfWeek The day of the week.
return MonthOnDayOfWeekUnit

OnTheFourth() public method

Runs the job on the given day of week on the fourth week of the month.
public OnTheFourth ( DayOfWeek day ) : MonthOnDayOfWeekUnit
day DayOfWeek The day of the week.
return MonthOnDayOfWeekUnit

OnTheLast() public method

Runs the job on the given day of week on the last week of the month.
public OnTheLast ( DayOfWeek day ) : MonthOnDayOfWeekUnit
day DayOfWeek The day of the week.
return MonthOnDayOfWeekUnit

OnTheLastDay() public method

Runs the job on the last day of the month.
public OnTheLastDay ( ) : MonthOnLastDayOfMonthUnit
return MonthOnLastDayOfMonthUnit

OnTheSecond() public method

Runs the job on the given day of week on the second week of the month.
public OnTheSecond ( DayOfWeek day ) : MonthOnDayOfWeekUnit
day DayOfWeek The day of the week.
return MonthOnDayOfWeekUnit

OnTheThird() public method

Runs the job on the given day of week on the third week of the month.
public OnTheThird ( DayOfWeek day ) : MonthOnDayOfWeekUnit
day DayOfWeek The day of the week.
return MonthOnDayOfWeekUnit