Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentVersionCleanupJob

    Recurring hosted service that executes the content history cleanup.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.BackgroundJobs.Jobs
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class ContentVersionCleanupJob : IRecurringBackgroundJob

    Constructors

    View Source

    ContentVersionCleanupJob(ILogger<ContentVersionCleanupJob>, IOptionsMonitor<ContentSettings>, IContentVersionService)

    Initializes a new instance of the ContentVersionCleanupJob class.

    Declaration
    public ContentVersionCleanupJob(ILogger<ContentVersionCleanupJob> logger, IOptionsMonitor<ContentSettings> settingsMonitor, IContentVersionService service)
    Parameters
    Type Name Description
    ILogger<ContentVersionCleanupJob> logger
    IOptionsMonitor<ContentSettings> settingsMonitor
    IContentVersionService service

    Properties

    View Source

    Period

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

    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
      • ContentVersionCleanupJob(ILogger<ContentVersionCleanupJob>, IOptionsMonitor<ContentSettings>, IContentVersionService)
    • Properties
      • Period
    • Methods
      • RunJobAsync()
    • Events
      • PeriodChanged
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX