Try our conversational search powered by Generative AI!

Class SubscriptionService

Gets pages available for subscription.

Inheritance
System.Object
SubscriptionService
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
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[ServiceConfiguration]
[Obsolete("The subscription feature is being phased out, it will continue to work but we do recommend not using it for new solutions")]
public class SubscriptionService

Constructors

SubscriptionService(IContentRepository, ServiceAccessor<PropertySearchDB>)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the SubscriptionService class.

Declaration
public SubscriptionService(IContentRepository contentRepository, ServiceAccessor<PropertySearchDB> propertySearchDbAccessor)
Parameters
Type Name Description
IContentRepository contentRepository

The page repository.

ServiceAccessor<PropertySearchDB> propertySearchDbAccessor

The accessor to get the property search db instance.

Properties

ContentRepository

Gets the Page Repository used to get subscription pages.

Declaration
protected IContentRepository ContentRepository { get; }
Property Value
Type Description
IContentRepository

PropertySearchDB

Gets the property search DB instance that is used to find subscription pages.

Declaration
protected PropertySearchDB PropertySearchDB { get; }
Property Value
Type Description
PropertySearchDB

Methods

GetSubscriptionPages(PageReference)

Gets pages available for subscription.

Declaration
public virtual IEnumerable<PageData> GetSubscriptionPages(PageReference root)
Parameters
Type Name Description
PageReference root

The reference to the root from where to start searching for subscription pages.

Returns
Type Description
System.Collections.Generic.IEnumerable<PageData>

Pages avaliable for subscription.

Remarks

The result is unfiltered. Any filtering is up to the caller of this method.

The result from this is not cached. It will ask the database every time.

Extension Methods