November Happy Hour will be moved to Thursday December 5th.

Class CleanUnusedAssetsFoldersJob

Scheduled job that removes content asset folders where the related content has been deleted.

Inheritance
System.Object
CleanUnusedAssetsFoldersJob
Implements
Namespace: EPiServer.Util
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ScheduledPlugIn]
[ServiceConfiguration]
public class CleanUnusedAssetsFoldersJob : ScheduledJobBase, IScheduledJob

Constructors

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 = 10
Field 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()
Overrides

Implements

Extension Methods