SaaS CMS has officially launched! Learn more now.

Interface IActivityRepository

Repository for managing persistance of Activity instances.

Namespace: EPiServer.DataAbstraction.Activities
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public interface IActivityRepository

Methods

DeleteAsync(Int64)

Deletes an Activity from the log.

Declaration
Task<bool> DeleteAsync(long id)
Parameters
Type Name Description
System.Int64 id

The identifier of the activity.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if an activity was found and it was successfully deleted; otherwise false

LoadAsync(Int64)

Loads the Activity with the provided identifier.

Declaration
Task<Activity> LoadAsync(long id)
Parameters
Type Name Description
System.Int64 id

The identifier of the activity.

Returns
Type Description
System.Threading.Tasks.Task<Activity>

An Activity instance or null if not found.

SaveAsync(Activity)

Saves an Activity to the log.

Declaration
Task<long> SaveAsync(Activity activity)
Parameters
Type Name Description
Activity activity

The activity that should be saved.

Returns
Type Description
System.Threading.Tasks.Task<System.Int64>

The identifier of the saved activity.

Extension Methods