C# Class Controller.PluginScheduler

Inheritance: IDisposable
Afficher le fichier Open project: h07r0d/Netduino-Aquarium-Controller Class Usage Examples

Méthodes publiques

Méthode Description
AddTask ( Delegate _delegate, object _state, System.TimeSpan _execute, System.TimeSpan _interval, bool _continuous ) : void

Adds a task to the scheduler

Dispose ( ) : void
PluginScheduler ( ) : System

Constructor

Start ( ) : void

Start the scheduler polling

Stop ( ) : void

Stop the Scheduler from Polling

Private Methods

Méthode Description
PollTasks ( object _state ) : void

Main polling thread

Method Details

AddTask() public méthode

Adds a task to the scheduler
public AddTask ( Delegate _delegate, object _state, System.TimeSpan _execute, System.TimeSpan _interval, bool _continuous ) : void
_delegate System.Delegate Callback to execute on matching time
_state object State object to pass to the Callback
_execute System.TimeSpan Timespan when to execute the Callback
_interval System.TimeSpan Interval when to re-execute Callback, if any
_continuous bool Should this Task be continuously rescheduled
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

PluginScheduler() public méthode

Constructor
public PluginScheduler ( ) : System
Résultat System

Start() public méthode

Start the scheduler polling
public Start ( ) : void
Résultat void

Stop() public méthode

Stop the Scheduler from Polling
public Stop ( ) : void
Résultat void