How do I alter a MediaType via the v6 API services?
I am trying to create an event handler that can add a property to a MediaType when it is created. I am using the v6 API and I can already do this with a ContentType using the ContentTypeService but I can't find a service for MediaType objects or any means of doing this via the MediaService.
I have tried putting break points on the MediaService and ContentTypeService to catch the saving of a MediaType but with no luck.
How do I alter a MediaType via the v6 API services?
I am trying to create an event handler that can add a property to a
MediaType
when it is created. I am using the v6 API and I can already do this with aContentType
using theContentTypeService
but I can't find a service forMediaType
objects or any means of doing this via theMediaService
.I have tried putting break points on the
MediaService
andContentTypeService
to catch the saving of aMediaType
but with no luck.Or:
Where should I be looking? It's not obvious how to manipulate a
MediaType
from here.the ContentTypeService contains the events for capturing MediaType
i've just tested them and these events fire in 6.1.5
the callback then passes IMediaType SaveEventArgs
Awesome, I didn't noticed the
ContentTypeService.SavingMediaType
member.Many thanks.
is working on a reply...