Class ParentRestoreService
ParentRestoreService listen to move and delete events and save and delete the parentship info to and from repository
Inheritance
System.Object
ParentRestoreService
Namespace: EPiServer.Util.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class ParentRestoreService : Object
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()