Class MessageActivityRepository
Repository to manage MessageActivity
Inheritance
System.Object
MessageActivityRepository
Namespace: EPiServer.DataAbstraction.Activities
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public abstract class MessageActivityRepository : Object
Constructors
MessageActivityRepository()
Declaration
protected MessageActivityRepository()
Methods
DeleteAsync(Int64)
Deletes a message from the activity log.
Declaration
public abstract Task<bool> DeleteAsync(long id)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | id | The id of the message to delete. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |
LoadAsync(Int64)
Loads a single MessageActivity together with related comments.
Declaration
public abstract Task<MessageActivity> LoadAsync(long id)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | id | The id of the message activity |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<MessageActivity> | The message with the provided id if found; otherwise null |
SaveAsync(MessageActivity)
Saves a new or updates an existing MessageActivity to the activity log.
Declaration
public abstract Task<long> SaveAsync(MessageActivity message)
Parameters
Type | Name | Description |
---|---|---|
MessageActivity | message | The message to save |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int64> | The id of the created or updated message |