Class PublishStatusInitializationNotificationHandler
Responsible for seeding the in-memory publish status cache at application's startup by loading all data from the database.
Inheritance
object
Namespace: Umbraco.Cms.Core.Services.Navigation
Assembly: Umbraco.Core.dll
Syntax
public sealed class PublishStatusInitializationNotificationHandler : INotificationAsyncHandler<PostRuntimePremigrationsUpgradeNotification>, INotificationHandler
Constructors
View SourcePublishStatusInitializationNotificationHandler(IRuntimeState, IPublishStatusManagementService)
Declaration
public PublishStatusInitializationNotificationHandler(IRuntimeState runtimeState, IPublishStatusManagementService publishStatusManagementService)
Parameters
| Type | Name | Description |
|---|---|---|
| IRuntimeState | runtimeState | |
| IPublishStatusManagementService | publishStatusManagementService |
Methods
View SourceHandleAsync(PostRuntimePremigrationsUpgradeNotification, CancellationToken)
Handles a notification.
Declaration
public Task HandleAsync(PostRuntimePremigrationsUpgradeNotification notification, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| PostRuntimePremigrationsUpgradeNotification | notification | The notification. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task | A System.Threading.Tasks.Task representing the asynchronous operation. |