コード例 #1
0
 public TImageService(IImageRepository imageRepository, IValidationService validationService,
                      ITinyImageService tinyImageService, ISettingsService settingsService, IHistoryService historyService,
                      IStatisticService statisticService, IStateService stateService, IFileSystem fileSystem,
                      IImageHistoryService imageHistoryService, IMediaService mediaService, ITinyPNGConnector tinyPngConnectorService,
                      IMediaHistoryRepository mediaHistoryRepository, IUmbracoDbRepository umbracoDbRepository, IUmbracoContextFactory context)
 {
     _imageRepository         = imageRepository;
     _validationService       = validationService;
     _tinyImageService        = tinyImageService;
     _settingsService         = settingsService;
     _historyService          = historyService;
     _statisticService        = statisticService;
     _stateService            = stateService;
     _fileSystem              = fileSystem;
     _imageHistoryService     = imageHistoryService;
     _mediaService            = mediaService;
     _tinyPngConnectorService = tinyPngConnectorService;
     _mediaHistoryRepository  = mediaHistoryRepository;
     _umbracoDbRepository     = umbracoDbRepository;
     _context = context;
 }
コード例 #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;
        }