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 SourceDocumentUrlServiceContentTreeChangeNotificationHandler(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 SourceHandleAsync(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. |