C# 클래스 Yea.Scheduler.Model.MonthUnit

파일 보기 프로젝트 열기: OxPatient/Rule-Engine

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
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.

메소드 상세

MonthUnit() 공개 메소드

public MonthUnit ( Schedule schedule, int duration ) : System
schedule Schedule
duration int
리턴 System

On() 공개 메소드

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
리턴 MonthOnDayOfMonthUnit

OnTheFirst() 공개 메소드

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
리턴 MonthOnDayOfWeekUnit

OnTheLast() 공개 메소드

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
리턴 MonthOnDayOfWeekUnit

OnTheLastDay() 공개 메소드

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

OnTheSecond() 공개 메소드

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
리턴 MonthOnDayOfWeekUnit

OnTheThird() 공개 메소드

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
리턴 MonthOnDayOfWeekUnit