Class TempFileCleanupService
Background timer that periodically cleans expired temporary uploads through the active provider. Call Start() once during application startup when background cleanup is desired.
Inherited Members
Namespace: AjaxUploader.Services
Assembly: AjaxUploader.dll
Syntax
public static class TempFileCleanupService
Methods
Start()
Starts background cleanup using the configured upload expiry interval.
Declaration
public static void Start()
Start(TimeSpan)
Starts background cleanup using a custom interval. Repeated calls are ignored while the timer is already running.
Declaration
public static void Start(TimeSpan interval)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | interval |
Stop()
Stops background cleanup.
Declaration
public static void Stop()