Search Results for

    Show / Hide Table of Contents
    View Source

    Class DocumentUrlServiceContentTypeChangedNotificationHandler

    Handles content type changes to rebuild URL and alias caches when content type variation changes. This ensures that when a content type changes from variant to invariant (or vice versa), the URL cache is properly rebuilt with the correct languageId (NULL for invariant, specific ID for variant).

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

    Constructors

    View Source

    DocumentUrlServiceContentTypeChangedNotificationHandler(IDocumentUrlService, IDocumentUrlAliasService, IContentService)

    Initializes a new instance of the DocumentUrlServiceContentTypeChangedNotificationHandler class.

    Declaration
    public DocumentUrlServiceContentTypeChangedNotificationHandler(IDocumentUrlService documentUrlService, IDocumentUrlAliasService documentUrlAliasService, IContentService contentService)
    Parameters
    Type Name Description
    IDocumentUrlService documentUrlService

    The document URL service.

    IDocumentUrlAliasService documentUrlAliasService

    The document URL alias service.

    IContentService contentService

    The content service.

    Methods

    View Source

    HandleAsync(ContentTypeChangedNotification, CancellationToken)

    Handles a notification.

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