Class ParentRestoreService
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. ParentRestoreService listen to move and delete events and save and delete the parentship info to and from repository
Inheritance
Inherited Members
Namespace: EPiServer.Util.Internal
Assembly: EPiServer.dll
Version: 11.20.7Syntax
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton, ServiceType = typeof(ParentRestoreService))]
public class ParentRestoreService
Constructors
ParentRestoreService()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the ParentRestoreService class.
Declaration
public ParentRestoreService()
ParentRestoreService(IContentEvents, IParentRestoreRepository, IContentRepository)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. listen to move and delete events.
Declaration
public virtual void Start()
Stop()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Stops the listening of events.
Declaration
public virtual void Stop()