![]() |
ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Manages and services tasks that are scheduled to run at a specific time. More...
Public Member Functions | |
ScheduleAgent (IStatisticsCounterChange counter, IEnqueueInternal enqueueInternal) | |
Initializes a new instance of the ScheduleAgent class. | |
IScheduleTask | Schedule (Action action, long firstInMs) |
Schedules a task to run after a specified delay. | |
void | Service () |
Services pending tasks by executing them when their scheduled time arrives. | |
![]() | |
![]() |
Manages and services tasks that are scheduled to run at a specific time.
XmobiTea.Threading.Agent.ScheduleAgent.ScheduleAgent | ( | IStatisticsCounterChange | counter, |
IEnqueueInternal | enqueueInternal ) |
Initializes a new instance of the ScheduleAgent class.
counter | The statistics counter for tracking task metrics. |
enqueueInternal | The enqueue interface for managing task execution. |
IScheduleTask XmobiTea.Threading.Agent.ScheduleAgent.Schedule | ( | Action | action, |
long | firstInMs ) |
Schedules a task to run after a specified delay.
action | The action to be executed by the task. |
firstInMs | The delay in milliseconds before the task is first executed. |
Implements XmobiTea.Threading.ISchedule.
void XmobiTea.Threading.Agent.ScheduleAgent.Service | ( | ) |
Services pending tasks by executing them when their scheduled time arrives.
Implements XmobiTea.Threading.IService.