Class MediaSavedNotification
A notification that is used to trigger the IMediaService when the Save method is called in the API and after the data has been persisted.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class MediaSavedNotification : SavedNotification<IMedia>, IStatefulNotification, INotification
Constructors
View SourceMediaSavedNotification(IEnumerable<IMedia>, EventMessages)
Initializes a new instance of the MediaSavedNotification.
Declaration
public MediaSavedNotification(IEnumerable<IMedia> target, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IMedia> | target | Gets the saved collection of IMedia objects. |
EventMessages | messages | Initializes a new instance of the EventMessages. |
MediaSavedNotification(IMedia, EventMessages)
Declaration
public MediaSavedNotification(IMedia target, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
IMedia | target | |
EventMessages | messages |