C# Class Yea.Scheduler.Model.MonthUnit

Afficher le fichier Open project: OxPatient/Rule-Engine

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

public MonthUnit ( Schedule schedule, int duration ) : System
schedule Schedule
duration int
Résultat System

On() public méthode

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
Résultat MonthOnDayOfMonthUnit

OnTheFirst() public méthode

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
Résultat MonthOnDayOfWeekUnit

OnTheLast() public méthode

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
Résultat MonthOnDayOfWeekUnit

OnTheLastDay() public méthode

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

OnTheSecond() public méthode

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
Résultat MonthOnDayOfWeekUnit

OnTheThird() public méthode

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
Résultat MonthOnDayOfWeekUnit