Class TempFileCleanupJob
Used to cleanup temporary file locations.
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.BackgroundJobs.Jobs
Assembly: Umbraco.Infrastructure.dll
Syntax
public class TempFileCleanupJob : IRecurringBackgroundJob
Remarks
Will run on all servers - even though file upload should only be handled on the scheduling publisher, this will ensure that in the case it happens on subscribers that they are cleaned up too.
Constructors
View SourceTempFileCleanupJob(IIOHelper, ILogger<TempFileCleanupJob>)
Initializes a new instance of the Temp
Declaration
public TempFileCleanupJob(IIOHelper ioHelper, ILogger<TempFileCleanupJob> logger)
Parameters
Type | Name | Description |
---|---|---|
IIOHelper | ioHelper | Helper service for IO operations. |
ILogger<Temp |
logger | The typed logger. |
Properties
View SourcePeriod
Declaration
public TimeSpan Period { get; }
Property Value
Type | Description |
---|---|
Time |
ServerRoles
Declaration
public ServerRole[] ServerRoles { get; }
Property Value
Type | Description |
---|---|
Server |
Methods
View SourceRunJobAsync()
Declaration
public Task RunJobAsync()
Returns
Type | Description |
---|---|
Task |
Events
View SourcePeriodChanged
Declaration
public event EventHandler PeriodChanged
Event Type
Type | Description |
---|---|
Event |