Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Class ParentRestoreService

ParentRestoreService listen to move and delete events and save and delete the parentship info to and from repository

Inheritance
System.Object
ParentRestoreService
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.Util
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton, ServiceType = typeof(ParentRestoreService))]
public class ParentRestoreService

Constructors

ParentRestoreService()

Initializes a new instance of the ParentRestoreService class.

Declaration
public ParentRestoreService()

ParentRestoreService(IContentEvents, IParentRestoreRepository, IContentRepository)

Initializes a new instance of the ParentRestoreService class.

Declaration
public ParentRestoreService(IContentEvents contentEvents, IParentRestoreRepository contentRestoreRepository, IContentRepository contentRepository)
Parameters
Type Name Description
IContentEvents contentEvents

The content events.

IParentRestoreRepository contentRestoreRepository

The content restore repository.

IContentRepository contentRepository

The content repository.

Methods

Restore(ContentReference)

Restores the specified source link. Move the source link to previous parent.

Declaration
public virtual ContentReference Restore(ContentReference sourceLink)
Parameters
Type Name Description
ContentReference sourceLink

The source link.

Returns
Type Description
ContentReference

Start()

listen to move and delete events.

Declaration
public virtual void Start()

Stop()

Stops the listening of events.

Declaration
public virtual void Stop()

Extension Methods