Class ContentActivityFeed
A feed to read activities related to a content. Can be used to retrieve content activities.
Inheritance
Namespace: EPiServer.DataAbstraction.Activities
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public abstract class ContentActivityFeed : Object
Constructors
ContentActivityFeed()
Declaration
protected ContentActivityFeed()
Properties
Instance
Gets the currently configured instance of the ContentActivityFeed.
Declaration
public static ContentActivityFeed Instance { get; }
Property Value
Type | Description |
---|---|
ContentActivityFeed |
Methods
ListActivitiesAsync(ContentReference)
List all Activity instances for a content version.
Declaration
public abstract Task<IEnumerable<Activity>> ListActivitiesAsync(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | contentLink | The content to get activities for |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Activity>> | A list of activities related to the content version |
ListActivitiesAsync(IEnumerable<ContentReference>)
List all Activity instances for a set of content versions.
Declaration
public virtual Task<IEnumerable<Activity>> ListActivitiesAsync(IEnumerable<ContentReference> contentLinks)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ContentReference> | contentLinks | The content to get activities for |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Activity>> |
ListActivitiesAsync(IEnumerable<ContentReference>, Int64, Int32)
List a paged set of Activity instances for a set of content versions.
Declaration
public abstract Task<PagedActivityResult> ListActivitiesAsync(IEnumerable<ContentReference> contentLinks, long startIndex, int maxCount)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ContentReference> | contentLinks | The content to get activities for |
System.Int64 | startIndex | The index for where only activities with a lower index will be returned. If no startIndex is given it will return the latest activities. |
System.Int32 | maxCount | The maximum number of activities to return. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<PagedActivityResult> |
LoadActivityAsync(Int64)
Loads a single Activity together with related comments.
Declaration
public abstract Task<Activity> LoadActivityAsync(long activityId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | activityId | The identity of the activity |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Activity> | An activity |