public ImageOrganizer(int sourceFolderId)
 {
     _sourceFolderId      = sourceFolderId;
     _previewModel        = new List <OrganisableMediaModel>();
     _imageService        = new ImageService();
     _mediaHistoryService = (IMediaHistoryService)_imageService;
     _media        = _imageService.GetAllImagesAt(_sourceFolderId);
     _mediaService = Umbraco.Core.ApplicationContext.Current.Services.MediaService;
 }
Esempio n. 2
0
 public TinifierController()
 {
     _imageService                = new ImageService();
     _historyService              = new HistoryService();
     _tinyPngConnectorService     = new TinyPNGConnectorService();
     _settingsService             = new SettingsService();
     _stateService                = new StateService();
     _validationService           = new ValidationService();
     _backendDevsConnectorService = new BackendDevsConnectorService();
     _mediaHistoryService         = new ImageService();
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetMediaHistoryCommand"/> class.
 /// </summary>
 /// <param name="historyService">The history service.</param>
 public GetMediaHistoryCommand(IMediaHistoryService historyService)
 {
     this.historyService = historyService;
 }