Class ForegroundTaskSchedulerService
The service used to execute enqueued tasks in the Evergine thread.
Inheritance
ForegroundTaskSchedulerService
Implements
Inherited Members
Namespace: Evergine.Framework.Services
Assembly: Evergine.Framework.dll
Syntax
public class ForegroundTaskSchedulerService : UpdatableService, IDependencyObject
Remarks
This service is used by ForegroundTaskScheduler. If a user wants to enqueue a task, they must use ForegroundTaskScheduler.
Methods
OnAttached()
Invoked when the object is attached to the system.
Declaration
protected override bool OnAttached()
Returns
Type | Description |
---|---|
bool | True if everything is OK. |
Overrides
Update(TimeSpan)
Executes the pending tasks in the ForegroundTaskScheduler.
Declaration
public override void Update(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | The elapsed game time since the last update. |