Beispiel #1
0
 public UmbracoServices(IContentTypeService contentTypeService, IMediaTypeService mediaTypeService, IMemberTypeService memberTypeService, IPublishedContentTypeFactory publishedContentTypeFactory)
 {
     _contentTypeService          = contentTypeService;
     _mediaTypeService            = mediaTypeService;
     _memberTypeService           = memberTypeService;
     _publishedContentTypeFactory = publishedContentTypeFactory;
 }
Beispiel #2
0
        /// <summary>
        /// Creates a partial service context with only some services (for tests).
        /// </summary>
        /// <remarks>
        /// <para>Using a true constructor for this confuses DI containers.</para>
        /// </remarks>
        public static ServiceContext CreatePartial(
            IContentService contentService         = null,
            IMediaService mediaService             = null,
            IContentTypeService contentTypeService = null,
            IMediaTypeService mediaTypeService     = null,
            IDataTypeService dataTypeService       = null,
            IFileService fileService = null,
            ILocalizationService localizationService = null,
            IPackagingService packagingService       = null,
            IEntityService entityService             = null,
            IRelationService relationService         = null,
            IMemberGroupService memberGroupService   = null,
            IMemberTypeService memberTypeService     = null,
            IMemberService memberService             = null,
            IUserService userService            = null,
            ISectionService sectionService      = null,
            IApplicationTreeService treeService = null,
            ITagService tagService = null,
            INotificationService notificationService   = null,
            ILocalizedTextService localizedTextService = null,
            IAuditService auditService                           = null,
            IDomainService domainService                         = null,
            IMacroService macroService                           = null,
            IPublicAccessService publicAccessService             = null,
            IExternalLoginService externalLoginService           = null,
            IServerRegistrationService serverRegistrationService = null,
            IRedirectUrlService redirectUrlService               = null,
            IConsentService consentService                       = null)
        {
            Lazy <T> Lazy <T>(T service) => service == null ? null : new Lazy <T>(() => service);

            return(new ServiceContext(
                       Lazy(publicAccessService),
                       Lazy(domainService),
                       Lazy(auditService),
                       Lazy(localizedTextService),
                       Lazy(tagService),
                       Lazy(contentService),
                       Lazy(userService),
                       Lazy(memberService),
                       Lazy(mediaService),
                       Lazy(contentTypeService),
                       Lazy(mediaTypeService),
                       Lazy(dataTypeService),
                       Lazy(fileService),
                       Lazy(localizationService),
                       Lazy(packagingService),
                       Lazy(serverRegistrationService),
                       Lazy(entityService),
                       Lazy(relationService),
                       Lazy(treeService),
                       Lazy(sectionService),
                       Lazy(macroService),
                       Lazy(memberTypeService),
                       Lazy(memberGroupService),
                       Lazy(notificationService),
                       Lazy(externalLoginService),
                       Lazy(redirectUrlService),
                       Lazy(consentService)));
        }
 public ContentTypeMapDefinition(
     CommonMapper commonMapper,
     PropertyEditorCollection propertyEditors,
     IDataTypeService dataTypeService,
     IFileService fileService,
     IContentTypeService contentTypeService,
     IMediaTypeService mediaTypeService,
     IMemberTypeService memberTypeService,
     ILoggerFactory loggerFactory,
     IShortStringHelper shortStringHelper,
     IOptions <GlobalSettings> globalSettings,
     IHostingEnvironment hostingEnvironment)
     : this(
         commonMapper,
         propertyEditors,
         dataTypeService,
         fileService,
         contentTypeService,
         mediaTypeService,
         memberTypeService,
         loggerFactory,
         shortStringHelper,
         globalSettings,
         hostingEnvironment,
         StaticServiceProvider.Instance.GetRequiredService <IOptionsMonitor <ContentSettings> >())
 {
 }
Beispiel #4
0
 public MediaTypeTreeController(ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, UmbracoTreeSearcher treeSearcher, IMenuItemCollectionFactory menuItemCollectionFactory, IMediaTypeService mediaTypeService, IEntityService entityService, IEventAggregator eventAggregator) : base(localizedTextService, umbracoApiControllerTypeCollection, eventAggregator)
 {
     _treeSearcher = treeSearcher;
     _menuItemCollectionFactory = menuItemCollectionFactory;
     _mediaTypeService          = mediaTypeService;
     _entityService             = entityService;
 }
Beispiel #5
0
 public DataTypeController(
     PropertyEditorCollection propertyEditors,
     IDataTypeService dataTypeService,
     IOptionsSnapshot <ContentSettings> contentSettings,
     IUmbracoMapper umbracoMapper,
     PropertyEditorCollection propertyEditorCollection,
     IContentTypeService contentTypeService,
     IMediaTypeService mediaTypeService,
     IMemberTypeService memberTypeService,
     ILocalizedTextService localizedTextService,
     IBackOfficeSecurityAccessor backOfficeSecurityAccessor,
     IConfigurationEditorJsonSerializer serializer)
 {
     _propertyEditors            = propertyEditors ?? throw new ArgumentNullException(nameof(propertyEditors));
     _dataTypeService            = dataTypeService ?? throw new ArgumentNullException(nameof(dataTypeService));
     _contentSettings            = contentSettings.Value ?? throw new ArgumentNullException(nameof(contentSettings));
     _umbracoMapper              = umbracoMapper ?? throw new ArgumentNullException(nameof(umbracoMapper));
     _propertyEditorCollection   = propertyEditorCollection ?? throw new ArgumentNullException(nameof(propertyEditorCollection));
     _contentTypeService         = contentTypeService ?? throw new ArgumentNullException(nameof(contentTypeService));
     _mediaTypeService           = mediaTypeService ?? throw new ArgumentNullException(nameof(mediaTypeService));
     _memberTypeService          = memberTypeService ?? throw new ArgumentNullException(nameof(memberTypeService));
     _localizedTextService       = localizedTextService ?? throw new ArgumentNullException(nameof(localizedTextService));
     _backOfficeSecurityAccessor = backOfficeSecurityAccessor ?? throw new ArgumentNullException(nameof(backOfficeSecurityAccessor));
     _serializer = serializer ?? throw new ArgumentNullException(nameof(serializer));
 }
Beispiel #6
0
 public DataTypeController(
     PropertyEditorCollection propertyEditors,
     IDataTypeService dataTypeService,
     IOptionsSnapshot <ContentSettings> contentSettings,
     IUmbracoMapper umbracoMapper,
     PropertyEditorCollection propertyEditorCollection,
     IContentTypeService contentTypeService,
     IMediaTypeService mediaTypeService,
     IMemberTypeService memberTypeService,
     ILocalizedTextService localizedTextService,
     IBackOfficeSecurityAccessor backOfficeSecurityAccessor,
     IConfigurationEditorJsonSerializer serializer)
     : this(
         propertyEditors,
         dataTypeService,
         contentSettings,
         umbracoMapper,
         propertyEditorCollection,
         contentTypeService,
         mediaTypeService,
         memberTypeService,
         localizedTextService,
         backOfficeSecurityAccessor,
         serializer,
         StaticServiceProvider.Instance.GetRequiredService <IDataTypeUsageService>())
 {
 }
Beispiel #7
0
 public TreeNodeRenderingComponent(IContentTypeService contentTypeService,
                                   IMediaTypeService mediaTypeService, IMemberTypeService memberTypeService)
 {
     _contentTypeService = contentTypeService;
     _mediaTypeService   = mediaTypeService;
     _memberTypeService  = memberTypeService;
 }
    public ContentTypeMapDefinition(
        CommonMapper commonMapper,
        PropertyEditorCollection propertyEditors,
        IDataTypeService dataTypeService,
        IFileService fileService,
        IContentTypeService contentTypeService,
        IMediaTypeService mediaTypeService,
        IMemberTypeService memberTypeService,
        ILoggerFactory loggerFactory,
        IShortStringHelper shortStringHelper,
        IOptions <GlobalSettings> globalSettings,
        IHostingEnvironment hostingEnvironment,
        IOptionsMonitor <ContentSettings> contentSettings)
    {
        _commonMapper       = commonMapper;
        _propertyEditors    = propertyEditors;
        _dataTypeService    = dataTypeService;
        _fileService        = fileService;
        _contentTypeService = contentTypeService;
        _mediaTypeService   = mediaTypeService;
        _memberTypeService  = memberTypeService;
        _loggerFactory      = loggerFactory;
        _logger             = _loggerFactory.CreateLogger <ContentTypeMapDefinition>();
        _shortStringHelper  = shortStringHelper;
        _globalSettings     = globalSettings.Value;
        _hostingEnvironment = hostingEnvironment;

        _contentSettings = contentSettings.CurrentValue;
        contentSettings.OnChange(x => _contentSettings = x);
    }
 /// <summary>
 ///     Initializes a new instance of the <see cref="CreatedPackageSchemaRepository" /> class.
 /// </summary>
 public CreatedPackageSchemaRepository(
     IUmbracoDatabaseFactory umbracoDatabaseFactory,
     IHostingEnvironment hostingEnvironment,
     IOptions <GlobalSettings> globalSettings,
     FileSystems fileSystems,
     IEntityXmlSerializer serializer,
     IDataTypeService dataTypeService,
     ILocalizationService localizationService,
     IFileService fileService,
     IMediaService mediaService,
     IMediaTypeService mediaTypeService,
     IContentService contentService,
     MediaFileManager mediaFileManager,
     IMacroService macroService,
     IContentTypeService contentTypeService,
     string?mediaFolderPath = null,
     string?tempFolderPath  = null)
 {
     _umbracoDatabase           = umbracoDatabaseFactory.CreateDatabase();
     _hostingEnvironment        = hostingEnvironment;
     _fileSystems               = fileSystems;
     _serializer                = serializer;
     _dataTypeService           = dataTypeService;
     _localizationService       = localizationService;
     _fileService               = fileService;
     _mediaService              = mediaService;
     _mediaTypeService          = mediaTypeService;
     _contentService            = contentService;
     _mediaFileManager          = mediaFileManager;
     _macroService              = macroService;
     _contentTypeService        = contentTypeService;
     _xmlParser                 = new PackageDefinitionXmlParser();
     _createdPackagesFolderPath = mediaFolderPath ?? Constants.SystemDirectories.CreatedPackages;
     _tempFolderPath            = tempFolderPath ?? Constants.SystemDirectories.TempData + "/PackageFiles";
 }
Beispiel #10
0
 public MemberTypeController(
     ICultureDictionary cultureDictionary,
     EditorValidatorCollection editorValidatorCollection,
     IContentTypeService contentTypeService,
     IMediaTypeService mediaTypeService,
     IMemberTypeService memberTypeService,
     IUmbracoMapper umbracoMapper,
     ILocalizedTextService localizedTextService,
     IBackOfficeSecurityAccessor backofficeSecurityAccessor,
     IShortStringHelper shortStringHelper)
     : base(cultureDictionary,
            editorValidatorCollection,
            contentTypeService,
            mediaTypeService,
            memberTypeService,
            umbracoMapper,
            localizedTextService)
 {
     _memberTypeService          = memberTypeService ?? throw new ArgumentNullException(nameof(memberTypeService));
     _backofficeSecurityAccessor = backofficeSecurityAccessor ?? throw new ArgumentNullException(nameof(backofficeSecurityAccessor));
     _shortStringHelper          = shortStringHelper ?? throw new ArgumentNullException(nameof(shortStringHelper));
     _umbracoMapper        = umbracoMapper ?? throw new ArgumentNullException(nameof(umbracoMapper));
     _localizedTextService =
         localizedTextService ?? throw new ArgumentNullException(nameof(localizedTextService));
 }
Beispiel #11
0
 public TImageRepository(IScopeProvider scopeProvider, IMediaService mediaService,
                         IMediaTypeService mediaTypeService, IFileSystemProviderRepository fileSystemProviderRepository)
 {
     this.scopeProvider            = scopeProvider;
     this._mediaService            = mediaService;
     _mediaTypeService             = mediaTypeService;
     _fileSystemProviderRepository = fileSystemProviderRepository;
 }
 public MediaTypeSerializer(
     IEntityService entityService, ILogger logger,
     IDataTypeService dataTypeService,
     IMediaTypeService mediaTypeService)
     : base(entityService, logger, dataTypeService, mediaTypeService, UmbracoObjectTypes.MediaTypeContainer)
 {
     this.mediaTypeService = mediaTypeService;
 }
Beispiel #13
0
 // default ctor
 internal PublishedContentTypeCache(IContentTypeService contentTypeService, IMediaTypeService mediaTypeService, IMemberTypeService memberTypeService, IPublishedContentTypeFactory publishedContentTypeFactory, ILogger logger)
 {
     _contentTypeService          = contentTypeService;
     _mediaTypeService            = mediaTypeService;
     _memberTypeService           = memberTypeService;
     _logger                      = logger;
     _publishedContentTypeFactory = publishedContentTypeFactory;
 }
Beispiel #14
0
 public TImageRepository(IScopeProvider scopeProvider, IMediaService mediaService,
                         IMediaTypeService mediaTypeService, IFileSystemProviderRepository fileSystemProviderRepository)
 {
     this.scopeProvider            = scopeProvider;
     this._mediaService            = mediaService;
     _mediaTypeService             = mediaTypeService;
     _fileSystemProviderRepository = fileSystemProviderRepository;
     _blobStorage = new AzureBlobStorageService();
 }
Beispiel #15
0
 public ImagePreprocessingComponent(IMediaFileSystem mediaFileSystem, IContentSection contentSection,
                                    IMediaService mediaService, IMediaTypeService mediaTypeService, IContentTypeBaseServiceProvider contentTypeBaseService)
 {
     _mediaFileSystem        = mediaFileSystem;
     _contentSection         = contentSection;
     _mediaService           = mediaService;
     _mediaTypeService       = mediaTypeService;
     _contentTypeBaseService = contentTypeBaseService;
 }
Beispiel #16
0
        public MediaItemBinder(IJsonSerializer jsonSerializer, IHostingEnvironment hostingEnvironment, IMediaService mediaService, IUmbracoMapper umbracoMapper, IMediaTypeService mediaTypeService)
        {
            _jsonSerializer     = jsonSerializer ?? throw new ArgumentNullException(nameof(jsonSerializer));
            _hostingEnvironment = hostingEnvironment ?? throw new ArgumentNullException(nameof(hostingEnvironment));
            _mediaService       = mediaService ?? throw new ArgumentNullException(nameof(mediaService));
            _umbracoMapper      = umbracoMapper ?? throw new ArgumentNullException(nameof(umbracoMapper));
            _mediaTypeService   = mediaTypeService ?? throw new ArgumentNullException(nameof(mediaTypeService));

            _modelBinderHelper = new ContentModelBinderHelper();
        }
Beispiel #17
0
        public MediaMapDefinition(ILogger logger, CommonMapper commonMapper, IMediaService mediaService, IMediaTypeService mediaTypeService,
                                  ILocalizedTextService localizedTextService)
        {
            _logger           = logger;
            _commonMapper     = commonMapper;
            _mediaService     = mediaService;
            _mediaTypeService = mediaTypeService;

            _tabsAndPropertiesMapper = new TabsAndPropertiesMapper <IMedia>(localizedTextService);
        }
 public UmbracoDataService(IScopeProvider scopeProvider, IContentService contentService, IContentTypeService contentTypeService, IDataTypeService dataTypeService, IMediaTypeService mediaTypeService, IFileService fileService, IMediaService mediaService, ILogger logger)
 {
     this.contentService     = contentService;
     this.contentTypeService = contentTypeService;
     this.dataTypeService    = dataTypeService;
     this.mediaTypeService   = mediaTypeService;
     this.fileService        = fileService;
     this.mediaService       = mediaService;
     this.scopeProvider      = scopeProvider;
     this.logger             = logger;
 }
Beispiel #19
0
 public MediaTypeSerializer(
     IEntityService entityService, ILogger <MediaTypeSerializer> logger,
     IDataTypeService dataTypeService,
     IMediaTypeService mediaTypeService,
     IShortStringHelper shortStringHelper,
     AppCaches appCaches,
     IContentTypeService contentTypeService)
     : base(entityService, logger, dataTypeService, mediaTypeService, UmbracoObjectTypes.MediaTypeContainer, shortStringHelper, appCaches, contentTypeService)
 {
     this.mediaTypeService = mediaTypeService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="uSyncMediaTypeService"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="mediaTypeService">The media type service.</param>
 /// <param name="appCaches">The application caches.</param>
 /// <param name="entityService">The entity service.</param>
 /// <param name="shortStringHelper">The short string helper.</param>
 /// <param name="uSyncFileService">The u synchronize file service.</param>
 /// <param name="uSyncEventService">The u synchronize event service.</param>
 /// <param name="uSyncConfigService">The u synchronize configuration service.</param>
 /// <param name="syncItemFactory">The synchronize item factory.</param>
 public uSyncMediaTypeService(ILogger <MediaTypeHandler> logger, IMediaTypeService mediaTypeService, AppCaches appCaches, IEntityService entityService, IShortStringHelper shortStringHelper, SyncFileService uSyncFileService, uSyncEventService uSyncEventService, uSyncConfigService uSyncConfigService, ISyncItemFactory syncItemFactory)
 {
     _logger             = logger;
     _mediaTypeService   = mediaTypeService;
     _appCaches          = appCaches;
     _entityService      = entityService;
     _shortStringHelper  = shortStringHelper;
     _uSyncFileService   = uSyncFileService;
     _uSyncEventService  = uSyncEventService;
     _uSyncConfigService = uSyncConfigService;
     _syncItemFactory    = syncItemFactory;
 }
Beispiel #21
0
        public MediaMapDefinition(ICultureDictionary cultureDictionary, CommonMapper commonMapper, CommonTreeNodeMapper commonTreeNodeMapper, IMediaService mediaService, IMediaTypeService mediaTypeService,
                                  ILocalizedTextService localizedTextService, MediaUrlGeneratorCollection mediaUrlGenerators, IOptions <ContentSettings> contentSettings, IContentTypeBaseServiceProvider contentTypeBaseServiceProvider)
        {
            _commonMapper         = commonMapper;
            _commonTreeNodeMapper = commonTreeNodeMapper;
            _mediaService         = mediaService;
            _mediaTypeService     = mediaTypeService;
            _mediaUrlGenerators   = mediaUrlGenerators;
            _contentSettings      = contentSettings.Value ?? throw new ArgumentNullException(nameof(contentSettings));

            _tabsAndPropertiesMapper = new TabsAndPropertiesMapper <IMedia>(cultureDictionary, localizedTextService, contentTypeBaseServiceProvider);
        }
Beispiel #22
0
 public ContentTypeMapDefinition(PropertyEditorCollection propertyEditors, IDataTypeService dataTypeService, IFileService fileService,
                                 IContentTypeService contentTypeService, IMediaTypeService mediaTypeService, IMemberTypeService memberTypeService,
                                 ILogger logger)
 {
     _propertyEditors    = propertyEditors;
     _dataTypeService    = dataTypeService;
     _fileService        = fileService;
     _contentTypeService = contentTypeService;
     _mediaTypeService   = mediaTypeService;
     _memberTypeService  = memberTypeService;
     _logger             = logger;
 }
 public TransactionsController(
     ICurrentUserService currentUserService,
     ILogger <TransactionsController> logger,
     IMapper mapper,
     IMediaTypeService mediaTypeService,
     ITransactionService transactionsService)
 {
     _currentUserService  = currentUserService;
     _logger              = logger;
     _mapper              = mapper;
     _mediaTypeService    = mediaTypeService;
     _transactionsService = transactionsService;
 }
 public PositionsController(
     ICurrentUserService currentUserService,
     ILogger <PositionsController> logger,
     IMapper mapper,
     IMediaTypeService mediaTypeService,
     IPositionService positionsService)
 {
     _currentUserService = currentUserService;
     _logger             = logger;
     _mapper             = mapper;
     _mediaTypeService   = mediaTypeService;
     _positionsService   = positionsService;
 }
 public VideoConvertEventService(
     IVideoConverter videoConverter,
     IVideoHelper videoHelper,
     IContentTypeService contentTypeService,
     IMediaService mediaService,
     IMediaTypeService mediaTypeService)
 {
     _videoConverter     = videoConverter;
     _videoHelper        = videoHelper;
     _contentTypeService = contentTypeService;
     _mediaService       = mediaService;
     _mediaTypeService   = mediaTypeService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UmbracoServices"/> class.
 /// </summary>
 public UmbracoServices(
     IContentTypeService contentTypeService,
     IMediaTypeService mediaTypeService,
     IMemberTypeService memberTypeService,
     IPublishedContentTypeFactory publishedContentTypeFactory,
     IShortStringHelper shortStringHelper)
 {
     _contentTypeService          = contentTypeService;
     _mediaTypeService            = mediaTypeService;
     _memberTypeService           = memberTypeService;
     _publishedContentTypeFactory = publishedContentTypeFactory;
     _shortStringHelper           = shortStringHelper;
 }
 public ContentTypeMapDefinition(CommonMapper commonMapper, PropertyEditorCollection propertyEditors, IDataTypeService dataTypeService, IFileService fileService,
                                 IContentTypeService contentTypeService, IMediaTypeService mediaTypeService, IMemberTypeService memberTypeService,
                                 ILogger logger, IUmbracoSettingsSection umbracoSettingsSection)
 {
     _commonMapper           = commonMapper;
     _propertyEditors        = propertyEditors;
     _dataTypeService        = dataTypeService;
     _fileService            = fileService;
     _contentTypeService     = contentTypeService;
     _mediaTypeService       = mediaTypeService;
     _memberTypeService      = memberTypeService;
     _logger                 = logger;
     _umbracoSettingsSection = umbracoSettingsSection;
 }
        public async Task GetUrlsByIds_MediaWithIntegerIds_ReturnsValidMap()
        {
            IMediaTypeService mediaTypeService = Services.GetRequiredService <IMediaTypeService>();
            IMediaService     mediaService     = Services.GetRequiredService <IMediaService>();

            var mediaItems = new List <Media>();

            using (ScopeProvider.CreateScope(autoComplete: true))
            {
                IMediaType mediaType = mediaTypeService.Get("image");
                mediaTypeService.Save(mediaType);

                mediaItems.Add(MediaBuilder.CreateMediaImage(mediaType, -1));
                mediaItems.Add(MediaBuilder.CreateMediaImage(mediaType, -1));

                foreach (Media media in mediaItems)
                {
                    mediaService.Save(media);
                }
            }

            var queryParameters = new Dictionary <string, object>
            {
                ["type"] = Constants.UdiEntityType.Media
            };

            var url = LinkGenerator.GetUmbracoControllerUrl("GetUrlsByIds", typeof(EntityController), queryParameters);

            var payload = new
            {
                ids = new[]
                {
                    mediaItems[0].Id,
                    mediaItems[1].Id,
                }
            };

            HttpResponseMessage response = await HttpClientJsonExtensions.PostAsJsonAsync(Client, url, payload);

            // skip pointless un-parseable cruft.
            (await response.Content.ReadAsStreamAsync()).Seek(AngularJsonMediaTypeFormatter.XsrfPrefix.Length, SeekOrigin.Begin);

            IDictionary <int, string> results = await response.Content.ReadFromJsonAsync <IDictionary <int, string> >();

            Assert.Multiple(() =>
            {
                Assert.AreEqual(HttpStatusCode.OK, response.StatusCode);
                Assert.IsTrue(results ![payload.ids[0]].StartsWith("/media"));
                Assert.IsTrue(results ![payload.ids[1]].StartsWith("/media"));
Beispiel #29
0
 public DashboardLogService(IScopeProvider scopeProvider, IUserService userService, IEntityService entityService, IContentTypeService contentTypeService, UmbracoMapper mapper, IContentService contentService, IMemberService memberService, IMediaTypeService mediaTypeService, IMemberTypeService memberTypeService, IDataTypeService dataTypeService, IRelationService relationService, IMediaService mediaService)
 {
     _scopeProvider      = scopeProvider;
     _userService        = userService;
     _entityService      = entityService;
     _contentTypeService = contentTypeService;
     _mapper             = mapper;
     _contentService     = contentService;
     _memberService      = memberService;
     _mediaTypeService   = mediaTypeService;
     _memberTypeService  = memberTypeService;
     _dataTypeService    = dataTypeService;
     _relationService    = relationService;
     _mediaService       = mediaService;
 }
 public MediaController(
     ICultureDictionary cultureDictionary,
     ILoggerFactory loggerFactory,
     IShortStringHelper shortStringHelper,
     IEventMessagesFactory eventMessages,
     ILocalizedTextService localizedTextService,
     IOptions <ContentSettings> contentSettings,
     IMediaTypeService mediaTypeService,
     IMediaService mediaService,
     IEntityService entityService,
     IBackOfficeSecurityAccessor backofficeSecurityAccessor,
     IUmbracoMapper umbracoMapper,
     IDataTypeService dataTypeService,
     ISqlContext sqlContext,
     IContentTypeBaseServiceProvider contentTypeBaseServiceProvider,
     IRelationService relationService,
     PropertyEditorCollection propertyEditors,
     MediaFileManager mediaFileManager,
     MediaUrlGeneratorCollection mediaUrlGenerators,
     IHostingEnvironment hostingEnvironment,
     IImageUrlGenerator imageUrlGenerator,
     IJsonSerializer serializer,
     IAuthorizationService authorizationService,
     AppCaches appCaches)
     : base(cultureDictionary, loggerFactory, shortStringHelper, eventMessages, localizedTextService, serializer)
 {
     _shortStringHelper          = shortStringHelper;
     _contentSettings            = contentSettings.Value;
     _mediaTypeService           = mediaTypeService;
     _mediaService               = mediaService;
     _entityService              = entityService;
     _backofficeSecurityAccessor = backofficeSecurityAccessor;
     _umbracoMapper              = umbracoMapper;
     _dataTypeService            = dataTypeService;
     _localizedTextService       = localizedTextService;
     _sqlContext = sqlContext;
     _contentTypeBaseServiceProvider = contentTypeBaseServiceProvider;
     _relationService      = relationService;
     _propertyEditors      = propertyEditors;
     _mediaFileManager     = mediaFileManager;
     _mediaUrlGenerators   = mediaUrlGenerators;
     _hostingEnvironment   = hostingEnvironment;
     _logger               = loggerFactory.CreateLogger <MediaController>();
     _imageUrlGenerator    = imageUrlGenerator;
     _authorizationService = authorizationService;
     _appCaches            = appCaches;
 }