Class MediaTypeRefreshedNotification
Notification published when media types have been 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 MediaTypeRefreshedNotification : ContentTypeRefreshNotification<IMediaType>, IStatefulNotification, INotification
Remarks
This notification is used internally for cache synchronization purposes. For normal media type operations, use tree change notifications instead.
Constructors
View SourceMediaTypeRefreshedNotification(IEnumerable<ContentTypeChange<IMediaType>>, EventMessages)
Initializes a new instance of the MediaTypeRefreshedNotification class with multiple media type changes.
Declaration
public MediaTypeRefreshedNotification(IEnumerable<ContentTypeChange<IMediaType>> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<ContentTypeChange<IMediaType>> | target | The collection of media type changes that occurred. |
| EventMessages | messages | The event messages collection. |
MediaTypeRefreshedNotification(ContentTypeChange<IMediaType>, EventMessages)
Initializes a new instance of the MediaTypeRefreshedNotification class with a single media type change.
Declaration
public MediaTypeRefreshedNotification(ContentTypeChange<IMediaType> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentTypeChange<IMediaType> | target | The media type change that occurred. |
| EventMessages | messages | The event messages collection. |