Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    TempFileCleanupJob(IIOHelper, ILogger<TempFileCleanupJob>)

    Initializes a new instance of the TempFileCleanupJob class.

    Declaration
    public TempFileCleanupJob(IIOHelper ioHelper, ILogger<TempFileCleanupJob> logger)
    Parameters
    Type Name Description
    IIOHelper ioHelper

    Helper service for IO operations.

    ILogger<TempFileCleanupJob> logger

    The typed logger.

    Properties

    View Source

    Period

    Declaration
    public TimeSpan Period { get; }
    Property Value
    Type Description
    TimeSpan
    View Source

    ServerRoles

    Declaration
    public ServerRole[] ServerRoles { get; }
    Property Value
    Type Description
    ServerRole[]

    Methods

    View Source

    RunJobAsync()

    Declaration
    public Task RunJobAsync()
    Returns
    Type Description
    Task

    Events

    View Source

    PeriodChanged

    Declaration
    public event EventHandler PeriodChanged
    Event Type
    Type Description
    EventHandler
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • TempFileCleanupJob(IIOHelper, ILogger<TempFileCleanupJob>)
    • Properties
      • Period
      • ServerRoles
    • Methods
      • RunJobAsync()
    • Events
      • PeriodChanged
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX