C# Class Controller.PluginScheduler

Inheritance: IDisposable
Show file Open project: h07r0d/Netduino-Aquarium-Controller Class Usage Examples

Public Methods

Method 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

Method Description
PollTasks ( object _state ) : void

Main polling thread

Method Details

AddTask() public method

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

Dispose() public method

public Dispose ( ) : void
return void

PluginScheduler() public method

Constructor
public PluginScheduler ( ) : System
return System

Start() public method

Start the scheduler polling
public Start ( ) : void
return void

Stop() public method

Stop the Scheduler from Polling
public Stop ( ) : void
return void