ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
Loading...
Searching...
No Matches
XmobiTea.Threading.Models.SingleTask Class Reference

Provides an implementation of a single task with an action. More...

Inheritance diagram for XmobiTea.Threading.Models.SingleTask:
XmobiTea.Threading.Models.ISingleTask XmobiTea.Threading.Models.ScheduleTask XmobiTea.Threading.Models.ScheduleOnIntervalTask

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.
 
- Public Member Functions inherited from XmobiTea.Threading.Models.ISingleTask

Properties

Action action [get]
 The action to be executed by this task.
 

Detailed Description

Provides an implementation of a single task with an action.

Constructor & Destructor Documentation

◆ SingleTask()

XmobiTea.Threading.Models.SingleTask.SingleTask ( Action action)

Initializes a new instance of the SingleTask class.

Parameters
actionThe action to be executed by the task.

Member Function Documentation

◆ Invoke()

virtual bool XmobiTea.Threading.Models.SingleTask.Invoke ( )
virtual

Executes the task and returns a boolean indicating success or failure.

Returns
True if the task was executed successfully; otherwise, false.

Implements XmobiTea.Threading.Models.ISingleTask.

Reimplemented in XmobiTea.Threading.Models.ScheduleOnIntervalTask, and XmobiTea.Threading.Models.ScheduleTask.


The documentation for this class was generated from the following file: