Search Results for

    Show / Hide Table of Contents
    View Source

    Class DefaultContentVersionCleanupPolicy

    Default implementation of the content version cleanup policy that determines which content versions should be cleaned up based on configuration settings and per-content-type overrides.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class DefaultContentVersionCleanupPolicy : IContentVersionCleanupPolicy

    Constructors

    View Source

    DefaultContentVersionCleanupPolicy(IOptions<ContentSettings>, ICoreScopeProvider, IDocumentVersionRepository)

    Initializes a new instance of the DefaultContentVersionCleanupPolicy class.

    Declaration
    public DefaultContentVersionCleanupPolicy(IOptions<ContentSettings> contentSettings, ICoreScopeProvider scopeProvider, IDocumentVersionRepository documentVersionRepository)
    Parameters
    Type Name Description
    IOptions<ContentSettings> contentSettings

    The content settings options.

    ICoreScopeProvider scopeProvider

    The scope provider.

    IDocumentVersionRepository documentVersionRepository

    The document version repository.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown when any parameter is null.

    Methods

    View Source

    Apply(DateTime, IEnumerable<ContentVersionMeta>)

    Filters a set of candidates historic content versions for cleanup according to policy settings.

    Declaration
    public IEnumerable<ContentVersionMeta> Apply(DateTime asAtDate, IEnumerable<ContentVersionMeta> items)
    Parameters
    Type Name Description
    DateTime asAtDate
    IEnumerable<ContentVersionMeta> items
    Returns
    Type Description
    IEnumerable<ContentVersionMeta>
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX