Class DomainDeletedNotification
Notification published after domains have been deleted.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class DomainDeletedNotification : DeletedNotification<IDomain>, IStatefulNotification, INotification
Remarks
This notification is published after domains have been successfully deleted, allowing handlers to react for auditing or cache invalidation purposes.
Constructors
View SourceDomainDeletedNotification(IEnumerable<IDomain>, EventMessages)
Initializes a new instance of the DomainDeletedNotification class with multiple domains.
Declaration
public DomainDeletedNotification(IEnumerable<IDomain> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IDomain> | target | The domains that were deleted. |
| EventMessages | messages | The event messages collection. |
DomainDeletedNotification(IDomain, EventMessages)
Initializes a new instance of the DomainDeletedNotification class with a single domain.
Declaration
public DomainDeletedNotification(IDomain target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IDomain | target | The domain that was deleted. |
| EventMessages | messages | The event messages collection. |