Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    StatefulNotification()

    Declaration
    protected StatefulNotification()

    Properties

    View Source

    State

    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.

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