Class MediaRefreshNotification
Notification published when media needs to be refreshed in the cache.
Inheritance
object
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 SourceMediaRefreshNotification(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. |