Class BackgroundTaskManager
An in-memory implementation of the IBackgroundTaskManager interface. This
implementation does not persist queued tasks or messages, and queued tasks and progress
messages will be lost when the application stops or the application pool is recycled.
Inheritance
System.Object
BackgroundTaskManager
Implements
EPiServer.Framework.IInitializableModule
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
public class BackgroundTaskManager : Object, IBackgroundTaskManager, IInitializableModule
Constructors
Declaration
public BackgroundTaskManager()
Declaration
public BackgroundTaskManager(BackgroundTaskMessageFactory defaultMessageFactory)
Parameters
Methods
Declaration
public virtual Guid AddTask(IBackgroundTask task)
Parameters
Returns
| Type |
Description |
| System.Guid |
|
Declaration
public virtual IList<IBackgroundTaskMessage> GetMessages(Guid taskId)
Parameters
| Type |
Name |
Description |
| System.Guid |
taskId |
|
Returns
Declaration
public virtual IList<IBackgroundTaskMessage> GetMessages(Guid taskId, int offset, int count, out int totalCount, IEnumerable<BackgroundTaskMessageType> messageTypeFilter = null)
Parameters
| Type |
Name |
Description |
| System.Guid |
taskId |
|
| System.Int32 |
offset |
|
| System.Int32 |
count |
|
| System.Int32 |
totalCount |
|
| System.Collections.Generic.IEnumerable<BackgroundTaskMessageType> |
messageTypeFilter |
|
Returns
Declaration
public virtual IBackgroundTaskMessage GetProgress(Guid taskId)
Parameters
| Type |
Name |
Description |
| System.Guid |
taskId |
|
Returns
Declaration
public void Initialize(InitializationEngine context)
Parameters
| Type |
Name |
Description |
| EPiServer.Framework.Initialization.InitializationEngine |
context |
|
Declaration
public virtual IList<BackgroundTaskState> QueryTasks(IEnumerable<Guid> taskIds = null, IEnumerable<Type> taskTypes = null, IEnumerable<BackgroundTaskStatus> taskStatuses = null)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IEnumerable<System.Guid> |
taskIds |
|
| System.Collections.Generic.IEnumerable<System.Type> |
taskTypes |
|
| System.Collections.Generic.IEnumerable<BackgroundTaskStatus> |
taskStatuses |
|
Returns
Declaration
public void Uninitialize(InitializationEngine context)
Parameters
| Type |
Name |
Description |
| EPiServer.Framework.Initialization.InitializationEngine |
context |
|
Implements
EPiServer.Framework.IInitializableModule