Interface IActivityRepository
Repository for managing persistance of Activity instances.
Namespace: EPiServer.DataAbstraction.Activities
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IActivityRepository
Methods
DeleteAsync(Int64)
Deletes an Activity from the log.
Declaration
Task<bool> DeleteAsync(long id)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The identifier of the activity. |
Returns
Type | Description |
---|---|
System. |
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. |
id | The identifier of the activity. |
Returns
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. |
The identifier of the saved activity. |