Class StatefulNotification
Abstract base class for notifications that can carry state between "ing" (before) and "ed" (after) notifications.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class StatefulNotification : IStatefulNotification, INotification
Remarks
This class implements IStatefulNotification and provides a dictionary for storing custom state data that persists between paired notifications (e.g., ContentSaving and ContentSaved).
Constructors
View SourceStatefulNotification()
Declaration
protected StatefulNotification()
Properties
View SourceState
Gets or sets a dictionary for storing custom state data.
Declaration
public IDictionary<string, object?> State { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, object> |
Remarks
This can be used by event subscribers to store state in the notification so they easily deal with custom state data between a starting ("ing") and an ending ("ed") notification.