Search Results for

    Show / Hide Table of Contents
    View Source

    Class MediaRefreshNotification

    Notification published when media needs to be refreshed in the cache.

    Inheritance
    object
    StatefulNotification
    ObjectNotification<IMedia>
    EntityRefreshNotification<IMedia>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    [Obsolete("This is only used for the internal cache and will change, use tree change notifications instead")]
    public class MediaRefreshNotification : EntityRefreshNotification<IMedia>, IStatefulNotification, INotification
    Remarks

    This notification is used internally for cache synchronization purposes. For normal media operations, use MediaTreeChangeNotification instead.

    Constructors

    View Source

    MediaRefreshNotification(IMedia, EventMessages)

    Initializes a new instance of the MediaRefreshNotification class.

    Declaration
    public MediaRefreshNotification(IMedia target, EventMessages messages)
    Parameters
    Type Name Description
    IMedia target

    The media item to refresh.

    EventMessages messages

    The event messages collection.

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