Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IElementPublishStatusManagementService

    Provides management operations for the in-memory element publish status cache.

    Namespace: Umbraco.Cms.Core.Services.Navigation
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IElementPublishStatusManagementService

    Methods

    View Source

    AddOrUpdateStatusAsync(Guid, CancellationToken)

    Adds or updates the publish status for a specific element in the cache.

    Declaration
    Task AddOrUpdateStatusAsync(Guid elementKey, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Guid elementKey

    The unique key of the element to update.

    CancellationToken cancellationToken

    A token to cancel the operation.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation.

    View Source

    InitializeAsync(CancellationToken)

    Initializes the element publish status cache by loading all published element statuses from the database.

    Declaration
    Task InitializeAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    A token to cancel the operation.

    Returns
    Type Description
    Task

    A task that represents the asynchronous initialization operation.

    View Source

    RemoveAsync(Guid, CancellationToken)

    Removes an element from the publish status cache.

    Declaration
    Task RemoveAsync(Guid elementKey, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Guid elementKey

    The unique key of the element to remove.

    CancellationToken cancellationToken

    A token to cancel the operation.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX