Class AddDomainWarningsWhenPublishingNotificationHandler
Inheritance
object
Namespace: Umbraco.Cms.Core.Events
Assembly: Umbraco.Core.dll
Syntax
public class AddDomainWarningsWhenPublishingNotificationHandler : INotificationHandler<ContentPublishedNotification>, INotificationHandler
Constructors
View SourceAddDomainWarningsWhenPublishingNotificationHandler(IOptions<ContentSettings>, IContentService, IDomainService, IEventMessagesFactory, ILogger<AddDomainWarningsWhenPublishingNotificationHandler>)
Declaration
public AddDomainWarningsWhenPublishingNotificationHandler(IOptions<ContentSettings> contentSettings, IContentService contentService, IDomainService domainService, IEventMessagesFactory eventMessagesFactory, ILogger<AddDomainWarningsWhenPublishingNotificationHandler> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| IOptions<ContentSettings> | contentSettings | |
| IContentService | contentService | |
| IDomainService | domainService | |
| IEventMessagesFactory | eventMessagesFactory | |
| ILogger<AddDomainWarningsWhenPublishingNotificationHandler> | logger |
Methods
View SourceHandle(ContentPublishedNotification)
Handles a notification.
Declaration
public void Handle(ContentPublishedNotification notification)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentPublishedNotification | notification | The notification. |