C# Class Yea.Scheduler.Model.Schedule

Afficher le fichier Open project: OxPatient/Rule-Engine Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Execute ( ) : void

Start the task now, regardless of any scheduled start time.

NonReentrant ( ) : Schedule

Will not start a new instance of the task if a previous schedule is still running

Schedule ( System.Action action ) : System

Schedules the specified task to run

Schedule ( ITask task ) : System

Schedules the specified task to run

ToRunEvery ( int interval ) : TimeUnit

Schedules the specified task to run for the specified interval

ToRunNow ( ) : SpecificRunTime

Schedules the specified task to run now

ToRunOnceAt ( System.DateTime time ) : SpecificRunTime

Schedules the specified task to run once at the time specified. If the time has passed, the task will be executed immediately.

ToRunOnceAt ( int hours, int minutes ) : SpecificRunTime

Schedules the specified task to run once at the hour and minute specified. If the hour and minute have passed, the task will be executed immediately.

WithName ( string name ) : Schedule

Provide a name for this schedule

Method Details

Execute() public méthode

Start the task now, regardless of any scheduled start time.
public Execute ( ) : void
Résultat void

NonReentrant() public méthode

Will not start a new instance of the task if a previous schedule is still running
public NonReentrant ( ) : Schedule
Résultat Schedule

Schedule() public méthode

Schedules the specified task to run
public Schedule ( System.Action action ) : System
action System.Action Task to run
Résultat System

Schedule() public méthode

Schedules the specified task to run
public Schedule ( ITask task ) : System
task ITask Task to run
Résultat System

ToRunEvery() public méthode

Schedules the specified task to run for the specified interval
public ToRunEvery ( int interval ) : TimeUnit
interval int
Résultat TimeUnit

ToRunNow() public méthode

Schedules the specified task to run now
public ToRunNow ( ) : SpecificRunTime
Résultat SpecificRunTime

ToRunOnceAt() public méthode

Schedules the specified task to run once at the time specified. If the time has passed, the task will be executed immediately.
public ToRunOnceAt ( System.DateTime time ) : SpecificRunTime
time System.DateTime Time to run the task
Résultat SpecificRunTime

ToRunOnceAt() public méthode

Schedules the specified task to run once at the hour and minute specified. If the hour and minute have passed, the task will be executed immediately.
public ToRunOnceAt ( int hours, int minutes ) : SpecificRunTime
hours int 0-23: Represents the hour of today
minutes int 0-59: Represents the minute to run the task
Résultat SpecificRunTime

WithName() public méthode

Provide a name for this schedule
public WithName ( string name ) : Schedule
name string Name of this schedule
Résultat Schedule