Interface IActivityRepository
The IActivityRepository interface describes a component capable of adding activity data to an underlying data store.
Namespace: EPiServer.Social.ActivityStreams.Core
Assembly: EPiServer.Social.ActivityStreams.Core.dll
Version: 1.5.4Syntax
public interface IActivityRepository
Methods
Add<TExtension>(Activity, TExtension)
Add an activity synchronously to the underlying data store.
Declaration
void Add<TExtension>(Activity activity, TExtension extension)
where TExtension : class
Parameters
| Type | Name | Description |
|---|---|---|
| Activity | activity | An activity encapsulating some social activity occurring in an application that was received by the ActivityStreams system for processing. |
| TExtension | extension | The type of activity or payload supplied as an extension to the activity |
Type Parameters
| Name | Description |
|---|---|
| TExtension | The activity payload supplied as an extension to the activity. |
AddAsync<TExtension>(Activity, TExtension)
Add an activity asynchronously to the underlying data store.
Declaration
Task AddAsync<TExtension>(Activity activity, TExtension extension)
where TExtension : class
Parameters
| Type | Name | Description |
|---|---|---|
| Activity | activity | An activity encapsulating some social activity occurring in an application that was received by the ActivityStreams system for processing. |
| TExtension | extension | The type of activity or payload supplied as an extension to the activity |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
Type Parameters
| Name | Description |
|---|---|
| TExtension | The activity payload supplied as an extension to the activity. |