Class CleanUnusedAssetsFoldersJob
Scheduled job that removes content asset folders where the related content has been deleted.
Implements
Inherited Members
Namespace: EPiServer.Util
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ScheduledPlugIn]
[ServiceConfiguration]
public class CleanUnusedAssetsFoldersJob : ScheduledJobBase, IScheduledJob
Constructors
CleanUnusedAssetsFoldersJob()
Initializes a new instance of the Clean
Declaration
public CleanUnusedAssetsFoldersJob()
Fields
BatchSize
The number of items that is loaded in a batch.
Declaration
public const int BatchSize = 10
Field Value
Type | Description |
---|---|
System. |
Methods
Execute()
Execute the job
Declaration
public override string Execute()
Returns
Type | Description |
---|---|
System. |
Overrides
OnStatusChanged(String)
Raise a StatusChanged event
Declaration
protected override void OnStatusChanged(string statusMessage)
Parameters
Type | Name | Description |
---|---|---|
System. |
statusMessage | Status message to report |
Overrides
Stop()
Stop the job
Declaration
public override void Stop()