Class TreeChangeNotification<T>
Abstract base class for notifications related to tree structure changes.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class TreeChangeNotification<T> : EnumerableObjectNotification<TreeChange<T>>, IStatefulNotification, INotification
Type Parameters
| Name | Description |
|---|---|
| T | The type of entity in the tree. |
Remarks
Tree change notifications are published when entities are added, removed, moved, or have their structure modified in a hierarchical tree. They are used for cache invalidation and tree synchronization.
Constructors
View SourceTreeChangeNotification(IEnumerable<TreeChange<T>>, EventMessages)
Initializes a new instance of the TreeChangeNotification<T> class with multiple tree changes.
Declaration
protected TreeChangeNotification(IEnumerable<TreeChange<T>> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<TreeChange<T>> | target | The collection of tree changes that occurred. |
| EventMessages | messages | The event messages collection. |
TreeChangeNotification(TreeChange<T>, EventMessages)
Initializes a new instance of the TreeChangeNotification<T> class with a single tree change.
Declaration
protected TreeChangeNotification(TreeChange<T> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeChange<T> | target | The tree change that occurred. |
| EventMessages | messages | The event messages collection. |
Properties
View SourceChanges
Gets the tree changes that occurred.
Declaration
public IEnumerable<TreeChange<T>> Changes { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<TreeChange<T>> |