SaaS CMS has officially launched! Learn more now.

Class TaskInformationStorage

Component that manages persistance of TaskInformation.

Inheritance
System.Object
TaskInformationStorage
Namespace: EPiServer.Async.Internal
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public abstract class TaskInformationStorage : Object
Remarks

The implementation is not guaranteed to be thread safe, so if used from singleton instances recommendation is to access instance through usage of ServiceAccessor<TService>.

Constructors

TaskInformationStorage()

Declaration
protected TaskInformationStorage()

Properties

MonitoredTaskTruncateLimit

The amount of time before a monitored task will be removed.

Declaration
public static TimeSpan MonitoredTaskTruncateLimit { get; set; }
Property Value
Type Description
System.TimeSpan
Remarks

Default value is 30 days

Methods

Delete(Guid)

Deletes the TaskInformation entry with specified id.

Declaration
public abstract void Delete(Guid taskInformationId)
Parameters
Type Name Description
System.Guid taskInformationId

Load(Guid)

Loads a persisted TaskInformation instance.

Declaration
public abstract TaskInformation Load(Guid taskInformationId)
Parameters
Type Name Description
System.Guid taskInformationId
Returns
Type Description
TaskInformation

Save(TaskInformation)

Persists a TaskInformation instance.

Declaration
public abstract void Save(TaskInformation task)
Parameters
Type Name Description
TaskInformation task

The TaskInformation to persist.

Tasks()

Returns a queryable where Linq can be used to get a filtered result.

Declaration
public abstract IOrderedQueryable<TaskInformation> Tasks()
Returns
Type Description
System.Linq.IOrderedQueryable<TaskInformation>

Extension Methods