C# Класс Yea.Scheduler.Model.MonthUnit

Показать файл Открыть проект

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