Exemple #1
0
 public TinifierController(IHistoryService historyService,
                           ISettingsService settingsService, IValidationService validationService,
                           IStateService stateService, ITinyPNGConnector tinyPngConnectorService, IImageOrganizer imageOrganizer,
                           IImageService imageService, IFileSystemRegistrationService fileSystemRegistrationService)
 {
     _historyService                = historyService;
     _imageService                  = imageService;
     _settingsService               = settingsService;
     _validationService             = validationService;
     _stateService                  = stateService;
     _tinyPngConnectorService       = tinyPngConnectorService;
     _fileSystemRegistrationService = fileSystemRegistrationService;
     _fileSystem     = _fileSystemRegistrationService.GetFileSystem();
     _imageOrganizer = imageOrganizer;
 }
Exemple #2
0
        public TImageService(IImageRepository imageRepository, IValidationService validationService,
                             ITinyImageService tinyImageService, ISettingsService settingsService, IHistoryService historyService,
                             IStatisticService statisticService, IStateService stateService,
                             IImageHistoryService imageHistoryService, IMediaService mediaService, ITinyPNGConnector tinyPngConnectorService,
                             IMediaHistoryRepository mediaHistoryRepository, IUmbracoDbRepository umbracoDbRepository, IFileSystemRegistrationService fileSystemRegistrationService)
        {
            _imageRepository               = imageRepository;
            _validationService             = validationService;
            _tinyImageService              = tinyImageService;
            _settingsService               = settingsService;
            _historyService                = historyService;
            _statisticService              = statisticService;
            _stateService                  = stateService;
            _fileSystemRegistrationService = fileSystemRegistrationService;

            _fileSystem = _fileSystemRegistrationService.GetFileSystem();

            _imageHistoryService     = imageHistoryService;
            _mediaService            = mediaService;
            _tinyPngConnectorService = tinyPngConnectorService;
            _mediaHistoryRepository  = mediaHistoryRepository;
            _umbracoDbRepository     = umbracoDbRepository;
        }
        public DeveloperLogger(IFileSystemRegistrationService fileSystemRegistrationService)
        {
            _fileSystemRegistrationService = fileSystemRegistrationService;

            _fileSystem = _fileSystemRegistrationService.GetFileSystem();
        }