November Happy Hour will be moved to Thursday December 5th.

Class MessageActivityRepository

Repository to manage MessageActivity

Inheritance
System.Object
MessageActivityRepository
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.DataAbstraction.Activities
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public abstract class MessageActivityRepository

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

Extension Methods