This class is a manager for scheduled callbacks. More...
Public Member Functions | |
Timer () | |
Initializes a new instance of the Timer class. More... | |
Guid | AddAction (DateTime utcExecutionTime, Action callback) |
Schedules a callback for a specific time. More... | |
void | ClearActions () |
Aborts all timers. More... | |
void | ExecuteAction (Action callback) |
Immediately invoks an async callback. More... | |
void | RemoveAction (Guid id) |
Removes a scheduled action that has been added with AddAction. More... | |
void | Start () |
Start executing callbacks. More... | |
void | Stop () |
Stops all timers. More... | |
Properties | |
bool | Running [get] |
Gets a value indicating whether Running. More... | |
This class is a manager for scheduled callbacks.
|
inline |
Initializes a new instance of the Timer class.
|
inline |
Schedules a callback for a specific time.
utcExecutionTime | The execution time in UTC. |
callback | The callback. |
|
inline |
Aborts all timers.
|
inline |
Immediately invoks an async callback.
callback | The callback to invoke. |
|
inline |
|
inline |
Start executing callbacks.
|
inline |
Stops all timers.
|
get |
Gets a value indicating whether Running.