Search Results for

    Show / Hide Table of Contents
    View Source

    Class AddUnroutableContentWarningsWhenPublishingNotificationHandler

    Handles the ContentPublishedNotification to add warnings when published content may not be routable.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Events
    Assembly: Umbraco.Core.dll
    Syntax
    public class AddUnroutableContentWarningsWhenPublishingNotificationHandler : INotificationAsyncHandler<ContentPublishedNotification>, INotificationHandler

    Constructors

    View Source

    AddUnroutableContentWarningsWhenPublishingNotificationHandler(IPublishedRouter, IUmbracoContextAccessor, ILanguageService, ILocalizedTextService, IContentService, IVariationContextAccessor, ILoggerFactory, UriUtility, IPublishedUrlProvider, IDocumentNavigationQueryService, IPublishedContentStatusFilteringService, IEventMessagesFactory, IOptions<ContentSettings>)

    Initializes a new instance of the AddUnroutableContentWarningsWhenPublishingNotificationHandler class.

    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

    The published router.

    IUmbracoContextAccessor umbracoContextAccessor

    The Umbraco context accessor.

    ILanguageService languageService

    The language service.

    ILocalizedTextService localizedTextService

    The localized text service.

    IContentService contentService

    The content service.

    IVariationContextAccessor variationContextAccessor

    The variation context accessor.

    ILoggerFactory loggerFactory

    The logger factory.

    UriUtility uriUtility

    The URI utility.

    IPublishedUrlProvider publishedUrlProvider

    The published URL provider.

    IDocumentNavigationQueryService navigationQueryService

    The navigation query service.

    IPublishedContentStatusFilteringService publishedContentStatusFilteringService

    The published content status filtering service.

    IEventMessagesFactory eventMessagesFactory

    The event messages factory.

    IOptions<ContentSettings> contentSettings

    The content settings.

    Methods

    View Source

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

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX