View Source
Inheritance
System.Object
Assembly: Umbraco.Core.dll
public class MediaTypeService : ContentTypeServiceBase<IMediaTypeRepository, IMediaType>, IMediaTypeService, IContentTypeBaseService<IMediaType>, IContentTypeBaseService, IService
Constructors
View Source
Declaration
public MediaTypeService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IMediaService mediaService, IMediaTypeRepository mediaTypeRepository, IAuditRepository auditRepository, IMediaTypeContainerRepository entityContainerRepository, IEntityRepository entityRepository, IEventAggregator eventAggregator)
Parameters
View Source
Declaration
public MediaTypeService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IMediaService mediaService, IMediaTypeRepository mediaTypeRepository, IAuditRepository auditRepository, IMediaTypeContainerRepository entityContainerRepository, IEntityRepository entityRepository, IEventAggregator eventAggregator, IUserIdKeyResolver userIdKeyResolver)
Parameters
Properties
View Source
Declaration
protected override Guid ContainedObjectType { get; }
Property Value
View Source
Declaration
protected override int[] ReadLockIds { get; }
Property Value
Type |
Description |
System.Int32[] |
|
View Source
Declaration
protected override int[] WriteLockIds { get; }
Property Value
Type |
Description |
System.Int32[] |
|
Methods
View Source
Declaration
protected override bool CanDelete(IMediaType item)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
Declaration
protected override void DeleteItemsOfTypes(IEnumerable<int> typeIds)
Parameters
Type |
Name |
Description |
IEnumerable<System.Int32> |
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)
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