C# Класс CodeSoda.Scheduler.Schedule

Represents a Schedule under which a task should be processed
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
At ( System.TimeSpan runat ) : Schedule

Creates a Schedule which runs Daily at a specific time

Every ( int frequency ) : Schedule

Creates a Schedule which runs Periodically after a predefined number of seconds

Every ( int frequency, System.DateTime lastRun ) : Schedule

Creates a Schedule which runs Periodically after a predefined number of seconds

Task ( ) : Schedule

Creates a Schedule which is manually managed by the task itself

Приватные методы

Метод Описание
Schedule ( ScheduleType type ) : System

Описание методов

At() публичный статический Метод

Creates a Schedule which runs Daily at a specific time
public static At ( System.TimeSpan runat ) : Schedule
runat System.TimeSpan The time at which the schedule should become active
Результат Schedule

Every() публичный статический Метод

Creates a Schedule which runs Periodically after a predefined number of seconds
public static Every ( int frequency ) : Schedule
frequency int How many seconds should pass before the schedule becomes active
Результат Schedule

Every() публичный статический Метод

Creates a Schedule which runs Periodically after a predefined number of seconds
public static Every ( int frequency, System.DateTime lastRun ) : Schedule
frequency int How many seconds should pass before the schedule becomes active
lastRun System.DateTime The date and time the task was last run, this will affect when this schedule will start for the first time
Результат Schedule

Task() публичный статический Метод

Creates a Schedule which is manually managed by the task itself
public static Task ( ) : Schedule
Результат Schedule