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, IScheduledJobConstructors
CleanUnusedAssetsFoldersJob()
Initializes a new instance of the CleanUnusedAssetsFoldersJob class.
Declaration
public CleanUnusedAssetsFoldersJob()Fields
BatchSize
The number of items that is loaded in a batch.
Declaration
public const int BatchSize = 10Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
Methods
Execute()
Execute the job
Declaration
public override string Execute()Returns
| Type | Description | 
|---|---|
| System.String | 
Overrides
OnStatusChanged(String)
Raise a StatusChanged event
Declaration
protected override void OnStatusChanged(string statusMessage)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | statusMessage | Status message to report | 
Overrides
Stop()
Stop the job
Declaration
public override void Stop()