London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Interface IActivityRepository

Repository for managing persistance of Activity instances.

Namespace: EPiServer.DataAbstraction.Activities
Assembly: EPiServer.dll
Version: 10.10.4
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