Class AddUnroutableContentWarningsWhenPublishingNotificationHandler
Inheritance
object
Namespace: Umbraco.Cms.Core.Events
Assembly: Umbraco.Core.dll
Syntax
public class AddUnroutableContentWarningsWhenPublishingNotificationHandler : INotificationAsyncHandler<ContentPublishedNotification>, INotificationHandler
Constructors
View SourceAddUnroutableContentWarningsWhenPublishingNotificationHandler(IPublishedRouter, IUmbracoContextAccessor, ILanguageService, ILocalizedTextService, IContentService, IVariationContextAccessor, ILoggerFactory, UriUtility, IPublishedUrlProvider, IDocumentNavigationQueryService, IPublishedContentStatusFilteringService, IEventMessagesFactory, IOptions<ContentSettings>)
Declaration
public AddUnroutableContentWarningsWhenPublishingNotificationHandler(IPublishedRouter publishedRouter, IUmbracoContextAccessor umbracoContextAccessor, ILanguageService languageService, ILocalizedTextService localizedTextService, IContentService contentService, IVariationContextAccessor variationContextAccessor, ILoggerFactory loggerFactory, UriUtility uriUtility, IPublishedUrlProvider publishedUrlProvider, IDocumentNavigationQueryService navigationQueryService, IPublishedContentStatusFilteringService publishedContentStatusFilteringService, IEventMessagesFactory eventMessagesFactory, IOptions<ContentSettings> contentSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| IPublishedRouter | publishedRouter | |
| IUmbracoContextAccessor | umbracoContextAccessor | |
| ILanguageService | languageService | |
| ILocalizedTextService | localizedTextService | |
| IContentService | contentService | |
| IVariationContextAccessor | variationContextAccessor | |
| ILoggerFactory | loggerFactory | |
| UriUtility | uriUtility | |
| IPublishedUrlProvider | publishedUrlProvider | |
| IDocumentNavigationQueryService | navigationQueryService | |
| IPublishedContentStatusFilteringService | publishedContentStatusFilteringService | |
| IEventMessagesFactory | eventMessagesFactory | |
| IOptions<ContentSettings> | contentSettings |
Methods
View SourceHandleAsync(ContentPublishedNotification, CancellationToken)
Handles a notification.
Declaration
public Task HandleAsync(ContentPublishedNotification notification, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentPublishedNotification | notification | The notification. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task | A System.Threading.Tasks.Task representing the asynchronous operation. |