Search Results for

    Show / Hide Table of Contents
    View Source

    Class TempFileCleanup

    Used to cleanup temporary file locations.

    Inheritance
    System.Object
    RecurringHostedServiceBase
    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 Source

    TempFileCleanup(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 Source

    PerformExecuteAsync(Object)

    Declaration
    public override Task PerformExecuteAsync(object state)
    Parameters
    Type Name Description
    System.Object state
    Returns
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • TempFileCleanup(IIOHelper, IMainDom, ILogger<TempFileCleanup>)
    • Methods
      • PerformExecuteAsync(Object)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX