Search Results for

    Show / Hide Table of Contents
    View Source

    Class AddDomainWarningsWhenPublishingNotificationHandler

    Handles the ContentPublishedNotification to add warnings when domains are not properly configured for multilingual sites.

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

    Constructors

    View Source

    AddDomainWarningsWhenPublishingNotificationHandler(IOptions<ContentSettings>, IContentService, IDomainService, IEventMessagesFactory, ILogger<AddDomainWarningsWhenPublishingNotificationHandler>)

    Initializes a new instance of the AddDomainWarningsWhenPublishingNotificationHandler class.

    Declaration
    public AddDomainWarningsWhenPublishingNotificationHandler(IOptions<ContentSettings> contentSettings, IContentService contentService, IDomainService domainService, IEventMessagesFactory eventMessagesFactory, ILogger<AddDomainWarningsWhenPublishingNotificationHandler> logger)
    Parameters
    Type Name Description
    IOptions<ContentSettings> contentSettings

    The content settings.

    IContentService contentService

    The content service.

    IDomainService domainService

    The domain service.

    IEventMessagesFactory eventMessagesFactory

    The event messages factory.

    ILogger<AddDomainWarningsWhenPublishingNotificationHandler> logger

    The logger.

    Methods

    View Source

    Handle(ContentPublishedNotification)

    Handles a notification.

    Declaration
    public void Handle(ContentPublishedNotification notification)
    Parameters
    Type Name Description
    ContentPublishedNotification notification

    The notification.

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