Class TempFileCleanup
Used to cleanup temporary file locations.
Namespace: Umbraco.Cms.Infrastructure.HostedServices
Assembly: Umbraco.Infrastructure.dll
Syntax
public class TempFileCleanup : RecurringHostedServiceBase
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 SourceTempFileCleanup(IIOHelper, IMainDom, ILogger<TempFileCleanup>)
Initializes a new instance of the TempFileCleanup class.
Declaration
public TempFileCleanup(IIOHelper ioHelper, IMainDom mainDom, ILogger<TempFileCleanup> logger)
Parameters
Type | Name | Description |
---|---|---|
IIOHelper | ioHelper | Helper service for IO operations. |
IMainDom | mainDom | Representation of the main application domain. |
ILogger<TempFileCleanup> | logger | The typed logger. |
Methods
View SourcePerformExecuteAsync(Object)
Declaration
public override Task PerformExecuteAsync(object state)
Parameters
Type | Name | Description |
---|---|---|
System.Object | state |
Returns
Type | Description |
---|---|
Task |