C# Class CodeSoda.Scheduler.Schedule

Represents a Schedule under which a task should be processed
Exibir arquivo Open project: codesoda/Scheduler Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
Schedule ( ScheduleType type ) : System

Method Details

At() public static method

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
return Schedule

Every() public static method

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
return Schedule

Every() public static method

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
return Schedule

Task() public static method

Creates a Schedule which is manually managed by the task itself
public static Task ( ) : Schedule
return Schedule