Last updated
Was this helpful?
Last updated
Was this helpful?
The MediaService class implements IMediaService. It provides access to operations involving IMedia.
Example usage of the MediaService notifications:
You can return a custom message to the user. Use this to show information, a warning or maybe an error.
This is achieved using the Messages
property of the notification and a composer.
This example returns an informational message to the user when a Media item is saved.
The MediaSavingNotification and MediaSavedNotification will always be published before and after an entity has been persisted. You can determine if an entity is brand new with either of those notifications. With the Saving notification - before the entity is persisted - you can check the entity's HasIdentity property which will be 'false' if it is brand new. In the Saved event you can
:
Example of how to use a MediaService Notification