Search Results for

    Show / Hide Table of Contents
    View Source

    Class DocumentUrlAliasContentRefreshNotificationHandler

    Persists a document's URL aliases as part of the transaction that persists the document.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class DocumentUrlAliasContentRefreshNotificationHandler : IDistributedCacheAsyncNotificationHandler<ContentRefreshNotification>, INotificationAsyncHandler<ContentRefreshNotification>, IDistributedCacheNotificationHandler, INotificationHandler
    Remarks

    ContentRefreshNotification is published by the document repository inside the content transaction, under the content tree write lock and before the entity's published state is reset, so the aliases are written under the same lock and commit as the content they describe. The in-memory alias cache is updated afterwards by the content cache refresher on every server, including the one that made the change.

    Constructors

    View Source

    DocumentUrlAliasContentRefreshNotificationHandler(IDocumentUrlAliasService)

    Initializes a new instance of the DocumentUrlAliasContentRefreshNotificationHandler class.

    Declaration
    public DocumentUrlAliasContentRefreshNotificationHandler(IDocumentUrlAliasService documentUrlAliasService)
    Parameters
    Type Name Description
    IDocumentUrlAliasService documentUrlAliasService

    The document URL alias service.

    Methods

    View Source

    HandleAsync(ContentRefreshNotification, CancellationToken)

    Handles a notification.

    Declaration
    public Task HandleAsync(ContentRefreshNotification notification, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    ContentRefreshNotification notification

    The notification.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

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