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 SourceAddOrUpdateStatusAsync(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. |
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. |
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. |