![]() |
ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Manages and processes tasks that need to be executed. Implements task enqueuing and processing with statistics tracking. More...
Public Member Functions | |
EnqueueAgent (IStatisticsCounterChange counter) | |
Initializes a new instance of the EnqueueAgent class. | |
ISingleTask | Enqueue (Action action) |
Enqueues a new action task for execution. | |
void | Enqueue (SingleTask task) |
Enqueues a SingleTask for execution. | |
void | Service () |
Processes pending tasks in the queue. Updates the statistics counters based on task execution. | |
![]() | |
![]() | |
![]() |
Manages and processes tasks that need to be executed. Implements task enqueuing and processing with statistics tracking.
XmobiTea.Threading.Agent.EnqueueAgent.EnqueueAgent | ( | IStatisticsCounterChange | counter | ) |
Initializes a new instance of the EnqueueAgent class.
counter | The counter used for tracking statistics. |
ISingleTask XmobiTea.Threading.Agent.EnqueueAgent.Enqueue | ( | Action | action | ) |
Enqueues a new action task for execution.
action | The action to be executed. |
Implements XmobiTea.Threading.IEnqueue.
void XmobiTea.Threading.Agent.EnqueueAgent.Enqueue | ( | SingleTask | task | ) |
Enqueues a SingleTask for execution.
task | The task to be enqueued. |
Implements XmobiTea.Threading.Agent.IEnqueueInternal.
void XmobiTea.Threading.Agent.EnqueueAgent.Service | ( | ) |
Processes pending tasks in the queue. Updates the statistics counters based on task execution.
Implements XmobiTea.Threading.IService.