View Source
Assembly: Umbraco.Core.dll
public class MediaTypeService : ContentTypeServiceBase<IMediaTypeRepository, IMediaType>, IMediaTypeService, IContentTypeBaseService<IMediaType>, IContentTypeBaseService, IService
Constructors
View Source
MediaTypeService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IMediaService, IMediaTypeRepository, IAuditRepository, IMediaTypeContainerRepository, IEntityRepository, IEventAggregator, IUserIdKeyResolver, ContentTypeFilterCollection)
Declaration
[Obsolete("Use the non-obsolete constructor instead. Scheduled removal in v19.")]
public MediaTypeService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IMediaService mediaService, IMediaTypeRepository mediaTypeRepository, IAuditRepository auditRepository, IMediaTypeContainerRepository entityContainerRepository, IEntityRepository entityRepository, IEventAggregator eventAggregator, IUserIdKeyResolver userIdKeyResolver, ContentTypeFilterCollection contentTypeFilters)
Parameters
View Source
MediaTypeService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IMediaService, IMediaTypeRepository, IAuditService, IAuditRepository, IMediaTypeContainerRepository, IEntityRepository, IEventAggregator, IUserIdKeyResolver, ContentTypeFilterCollection)
Declaration
[Obsolete("Use the non-obsolete constructor instead. Scheduled removal in v19.")]
public MediaTypeService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IMediaService mediaService, IMediaTypeRepository mediaTypeRepository, IAuditService auditService, IAuditRepository auditRepository, IMediaTypeContainerRepository entityContainerRepository, IEntityRepository entityRepository, IEventAggregator eventAggregator, IUserIdKeyResolver userIdKeyResolver, ContentTypeFilterCollection contentTypeFilters)
Parameters
View Source
MediaTypeService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IMediaService, IMediaTypeRepository, IAuditService, IMediaTypeContainerRepository, IEntityRepository, IEventAggregator, IUserIdKeyResolver, ContentTypeFilterCollection)
Declaration
public MediaTypeService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IMediaService mediaService, IMediaTypeRepository mediaTypeRepository, IAuditService auditService, IMediaTypeContainerRepository entityContainerRepository, IEntityRepository entityRepository, IEventAggregator eventAggregator, IUserIdKeyResolver userIdKeyResolver, ContentTypeFilterCollection contentTypeFilters)
Parameters
Properties
View Source
Declaration
protected override Guid ContainedObjectType { get; }
Property Value
View Source
Declaration
protected override int[] ReadLockIds { get; }
Property Value
View Source
Declaration
protected override int[] WriteLockIds { get; }
Property Value
Methods
View Source
Declaration
protected override bool CanDelete(IMediaType item)
Parameters
Returns
View Source
Declaration
protected override void DeleteItemsOfTypes(IEnumerable<int> typeIds)
Parameters
| Type |
Name |
Description |
| IEnumerable<int> |
typeIds |
|
View Source
GetContentTypeChangedNotification(IEnumerable<ContentTypeChange<IMediaType>>, EventMessages)
Declaration
protected override ContentTypeChangeNotification<IMediaType> GetContentTypeChangedNotification(IEnumerable<ContentTypeChange<IMediaType>> changes, EventMessages eventMessages)
Parameters
Returns
View Source
GetContentTypeRefreshedNotification(IEnumerable<ContentTypeChange<IMediaType>>, EventMessages)
The purpose of this notification being published within the transaction is so that listeners can perform database
operations from within the same transaction and guarantee data consistency so that if anything goes wrong
the entire transaction can be rolled back. This is used by Nucache.
Declaration
protected override ContentTypeRefreshNotification<IMediaType> GetContentTypeRefreshedNotification(IEnumerable<ContentTypeChange<IMediaType>> changes, EventMessages eventMessages)
Parameters
Returns
View Source
Declaration
protected override DeletedNotification<IMediaType> GetDeletedNotification(IEnumerable<IMediaType> items, EventMessages eventMessages)
Parameters
Returns
View Source
Declaration
protected override DeletingNotification<IMediaType> GetDeletingNotification(IEnumerable<IMediaType> items, EventMessages eventMessages)
Parameters
Returns
View Source
Declaration
protected override DeletingNotification<IMediaType> GetDeletingNotification(IMediaType item, EventMessages eventMessages)
Parameters
Returns
View Source
Declaration
protected override MovedNotification<IMediaType> GetMovedNotification(IEnumerable<MoveEventInfo<IMediaType>> moveInfo, EventMessages eventMessages)
Parameters
Returns
View Source
Declaration
protected override MovingNotification<IMediaType> GetMovingNotification(MoveEventInfo<IMediaType> moveInfo, EventMessages eventMessages)
Parameters
Returns
View Source
Declaration
protected override SavedNotification<IMediaType> GetSavedNotification(IEnumerable<IMediaType> items, EventMessages eventMessages)
Parameters
Returns
View Source
Declaration
protected override SavedNotification<IMediaType> GetSavedNotification(IMediaType item, EventMessages eventMessages)
Parameters
Returns
View Source
Declaration
protected override SavingNotification<IMediaType> GetSavingNotification(IEnumerable<IMediaType> items, EventMessages eventMessages)
Parameters
Returns
View Source
Declaration
protected override SavingNotification<IMediaType> GetSavingNotification(IMediaType item, EventMessages eventMessages)
Parameters
Returns