C# Class Yea.Scheduler.Model.MonthUnit

Exibir arquivo Open project: OxPatient/Rule-Engine

Private Properties

Property Type Description

Public Methods

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

Schedules the specified task to run on the day specified. If the day has passed, the task will execute the next scheduled month.

OnTheFirst ( DayOfWeek day ) : MonthOnDayOfWeekUnit

Schedules the specified task to run on the first occurance of the specified day of the week. If the day has passed, the task will execute the next scheduled month.

OnTheLast ( DayOfWeek day ) : MonthOnDayOfWeekUnit

Schedules the specified task to run on the last occurance of the specified day of the week. If the day has passed, the task will execute the next scheduled month.

OnTheLastDay ( ) : MonthOnLastDayOfMonthUnit

Schedules the specified task to run on the last day of the month.

OnTheSecond ( DayOfWeek day ) : MonthOnDayOfWeekUnit

Schedules the specified task to run on the second occurance of the specified day of the week. If the day has passed, the task will execute the next scheduled month.

OnTheThird ( DayOfWeek day ) : MonthOnDayOfWeekUnit

Schedules the specified task to run on the third occurance of the specified day of the week. If the day has passed, the task will execute the next scheduled month.

Method Details

MonthUnit() public method

public MonthUnit ( Schedule schedule, int duration ) : System
schedule Schedule
duration int
return System

On() public method

Schedules the specified task to run on the day specified. If the day has passed, the task will execute the next scheduled month.
public On ( int day ) : MonthOnDayOfMonthUnit
day int 1-31: Represents the day of the month
return MonthOnDayOfMonthUnit

OnTheFirst() public method

Schedules the specified task to run on the first occurance of the specified day of the week. If the day has passed, the task will execute the next scheduled month.
public OnTheFirst ( DayOfWeek day ) : MonthOnDayOfWeekUnit
day DayOfWeek Day of week to run the task
return MonthOnDayOfWeekUnit

OnTheLast() public method

Schedules the specified task to run on the last occurance of the specified day of the week. If the day has passed, the task will execute the next scheduled month.
public OnTheLast ( DayOfWeek day ) : MonthOnDayOfWeekUnit
day DayOfWeek Day of week to run the task
return MonthOnDayOfWeekUnit

OnTheLastDay() public method

Schedules the specified task to run on the last day of the month.
public OnTheLastDay ( ) : MonthOnLastDayOfMonthUnit
return MonthOnLastDayOfMonthUnit

OnTheSecond() public method

Schedules the specified task to run on the second occurance of the specified day of the week. If the day has passed, the task will execute the next scheduled month.
public OnTheSecond ( DayOfWeek day ) : MonthOnDayOfWeekUnit
day DayOfWeek Day of week to run the task
return MonthOnDayOfWeekUnit

OnTheThird() public method

Schedules the specified task to run on the third occurance of the specified day of the week. If the day has passed, the task will execute the next scheduled month.
public OnTheThird ( DayOfWeek day ) : MonthOnDayOfWeekUnit
day DayOfWeek Day of week to run the task
return MonthOnDayOfWeekUnit