Class DefaultActivityStreamsFactory

The DefaultActivityStreamsFactory class encapsulates the platform's default construction of various services and components required by the Social Activity Streams system.

Inheritance
System.Object
DefaultActivityStreamsFactory
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.Social.ActivityStreams
Assembly: EPiServer.Social.ActivityStreams.dll
Version: 1.5.4
Syntax
public class DefaultActivityStreamsFactory

Constructors

DefaultActivityStreamsFactory()

Declaration
public DefaultActivityStreamsFactory()

Methods

CreateActivityQueue(IActivityQueueReceiver)

Returns a new instance of the activity queue used by the Social Activity Streams system.

Declaration
public IActivityQueue CreateActivityQueue(IActivityQueueReceiver activityHandler)
Parameters
Type Name Description
IActivityQueueReceiver activityHandler
Returns
Type Description
IActivityQueue

New activity queue

CreateActivityService()

Returns an activity service according to platform defaults.

Declaration
public IActivityService CreateActivityService()
Returns
Type Description
IActivityService

New activity service

CreateFeedService()

Creates a new feed service according to platform defaults.

Declaration
public IFeedService CreateFeedService()
Returns
Type Description
IFeedService

New feed service

CreateSubscriptionService()

Creates a new subscription service according to platform defaults.

Declaration
public ISubscriptionService CreateSubscriptionService()
Returns
Type Description
ISubscriptionService

New subscription service

GetActivityQueue(IActivityQueueReceiver)

Creates a new activity queue according to platform defaults. Override this method to introduce a custom activity queue.

Declaration
protected virtual IActivityQueue GetActivityQueue(IActivityQueueReceiver activityHandler)
Parameters
Type Name Description
IActivityQueueReceiver activityHandler

The activity handler of the Social Activity Streams system that processes activities being added to the activity queue.

Returns
Type Description
IActivityQueue

New activity queue

GetActivityRepository()

Gets an instance of the activity repository intended to support the service constructed by this factory. Override this method to introduce a custom repository.

Declaration
protected virtual IActivityRepository GetActivityRepository()
Returns
Type Description
IActivityRepository

Activity Repository intended to support this service

GetActivityStreamsLogger()

Creates a new social logger instance according to platform defaults.

Declaration
public virtual ISocialLogger GetActivityStreamsLogger()
Returns
Type Description
ISocialLogger

New social logger instance

GetFeedRepository()

Gets an instance of the feed repository intended to support the service constructed by this factory. Override this method to introduce a custom feed repository.

Declaration
protected virtual IFeedItemRepository GetFeedRepository()
Returns
Type Description
IFeedItemRepository

Feed repository intended to support this service

GetHttpClientFactory()

Contructs an CachingHttpClientFactory for used by the Http repositories.

Declaration
protected CachingHttpClientFactory GetHttpClientFactory()
Returns
Type Description
CachingHttpClientFactory

The CachingHttpClientFactory instance.

GetSubscriptionRepository()

Gets an instance of the subscription repository intended to support the service constructed by this factory. Override this method to introduce a custom subscription repository.

Declaration
protected virtual ISubscriptionRepository GetSubscriptionRepository()
Returns
Type Description
ISubscriptionRepository

Subscription repository intended to support this service

arrow_upward