Namespace Mediachase.Commerce.BackgroundTasks

Classes

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.

BackgroundTaskMessage

Default implementation of IBackgroundTaskMessage.

BackgroundTaskMessageFactory

Creates the final message for a task on completion.

BackgroundTaskState

Represents the current state of a background task.

TaskDebugMessage

Reprents an IBackgroundTaskMessage with message type BackgroundTaskMessageType.Debug.

TaskErrorMessage

Reprents an IBackgroundTaskMessage with message type BackgroundTaskMessageType.Error.

TaskInfoMessage

Reprents an IBackgroundTaskMessage with message type BackgroundTaskMessageType.Info.

TaskProgressMessage

Reprents an IBackgroundTaskMessage with message type BackgroundTaskMessageType.Progress.

TaskSuccessMessage

Reprents an IBackgroundTaskMessage with message type BackgroundTaskMessageType.Success.

TaskWarningMessage

Represents an IBackgroundTaskMessage with message type BackgroundTaskMessageType.Warning.

Interfaces

IBackgroundTask

Describes a backgroud task that may be queued and run later. All implementations must have a constructor accepting a single argument of type System.Collections.Generic.IDictionary<TKey, TValue> that may be used to re-create the task with the value returned from BackgroundTaskArguments if the task must be queued and run at a later time.

IBackgroundTaskManager

Manages safe execution of background tasks, and exposes progress messages from the tasks.

IBackgroundTaskMessage

A message generated by a background task.

Enums

BackgroundTaskMessageType

Describes types of messages returned by background tasks.

BackgroundTaskStatus

Describes the current state of a task.