![]() |
ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Provides an implementation of a single task with an action. More...
Public Member Functions | |
SingleTask (Action action) | |
Initializes a new instance of the SingleTask class. | |
virtual bool | Invoke () |
Executes the task and returns a boolean indicating success or failure. | |
![]() |
Properties | |
Action | action [get] |
The action to be executed by this task. | |
Provides an implementation of a single task with an action.
XmobiTea.Threading.Models.SingleTask.SingleTask | ( | Action | action | ) |
Initializes a new instance of the SingleTask class.
action | The action to be executed by the task. |
|
virtual |
Executes the task and returns a boolean indicating success or failure.
Implements XmobiTea.Threading.Models.ISingleTask.
Reimplemented in XmobiTea.Threading.Models.ScheduleOnIntervalTask, and XmobiTea.Threading.Models.ScheduleTask.