![]() |
ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Provides an implementation of a scheduled task with an action and state management. More...
Public Member Functions | |
ScheduleTask (Action action) | |
Initializes a new instance of the ScheduleTask class. | |
void | Dispose () |
Releases all resources used by the task. | |
virtual bool | IsRunning () |
Checks if the task is currently running and not disposed. | |
override bool | Invoke () |
Executes the task's action if it is running, and updates the running state. | |
![]() | |
SingleTask (Action action) | |
Initializes a new instance of the SingleTask class. | |
![]() | |
![]() |
Protected Member Functions | |
bool | InvokeInternal () |
Executes the task's action internally, with exception handling. | |
Additional Inherited Members | |
![]() | |
Action | action [get] |
The action to be executed by this task. | |
Provides an implementation of a scheduled task with an action and state management.
XmobiTea.Threading.Models.ScheduleTask.ScheduleTask | ( | Action | action | ) |
Initializes a new instance of the ScheduleTask class.
action | The action to be executed by the task. |
void XmobiTea.Threading.Models.ScheduleTask.Dispose | ( | ) |
Releases all resources used by the task.
Implements XmobiTea.Threading.Models.IScheduleTask.
|
virtual |
Executes the task's action if it is running, and updates the running state.
Reimplemented from XmobiTea.Threading.Models.SingleTask.
|
protected |
Executes the task's action internally, with exception handling.
|
virtual |
Checks if the task is currently running and not disposed.
Implements XmobiTea.Threading.Models.IScheduleTask.