Class TaskInformationStorage
NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Component that manages persistance of TaskInformation.
Inheritance
Inherited Members
Namespace: EPiServer.Async
Assembly: EPiServer.Framework.dll
Version: 7.19.2Syntax
public abstract class TaskInformationStorage
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()
Methods
Delete(Guid)
Deletes the TaskInformation entry with specified id.
Declaration
public abstract void Delete(Guid taskInformationId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | taskInformationId |
List<T>()
Lists all TaskInformation<T>.
Declaration
public abstract IEnumerable<TaskInformation> List<T>()
where T : new()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TaskInformation> |
Type Parameters
Name | Description |
---|---|
T | The typed argument that matches TaskInformation<T> |
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> |