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
System.Object
TaskInformationStorage
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Async
Assembly: EPiServer.Framework.dll
Version: 8.11.0Syntax
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> |