Search Results for

    Show / Hide Table of Contents
    View Source

    Class DocumentUrlServiceContentTreeChangeNotificationHandler

    Handles ContentTreeChangeNotification to persist URL segments and aliases to the database on the originating server. This fires post-commit (during scope disposal) before the cache instruction is delivered to other servers, ensuring URL data is in the database before any server processes the instruction.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class DocumentUrlServiceContentTreeChangeNotificationHandler : INotificationAsyncHandler<ContentTreeChangeNotification>, INotificationHandler

    Constructors

    View Source

    DocumentUrlServiceContentTreeChangeNotificationHandler(IDocumentUrlService, IDocumentUrlAliasService)

    Initializes a new instance of the DocumentUrlServiceContentTreeChangeNotificationHandler class.

    Declaration
    public DocumentUrlServiceContentTreeChangeNotificationHandler(IDocumentUrlService documentUrlService, IDocumentUrlAliasService documentUrlAliasService)
    Parameters
    Type Name Description
    IDocumentUrlService documentUrlService
    IDocumentUrlAliasService documentUrlAliasService

    Methods

    View Source

    HandleAsync(ContentTreeChangeNotification, CancellationToken)

    Handles a notification.

    Declaration
    public Task HandleAsync(ContentTreeChangeNotification notification, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    ContentTreeChangeNotification 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