Beispiel #1
0
 public ProcessController(
     IImageProcessService service,
     IFilterByRouteResolver filterResolver, ILog log)
 {
     _service        = service;
     _filterResolver = filterResolver;
     _log            = log;
 }
Beispiel #2
0
 public AlbumService(IWebHostEnvironment env, ISettings settings, ILogger <AlbumService> logger,
                     IImageProcessService imageProcessService, IAlbumRepository albumRepository)
 {
     _settings            = settings;
     _uploadImageRootPath = Path.Combine(env.WebRootPath, _settings.UploadImageRootPath, _settings.AlbumRootPath);
     _logger = logger;
     _imageProcessService = imageProcessService;
     _albumRepository     = albumRepository;
 }
Beispiel #3
0
        public BlogService(IBlogRepository repository, ISettings settings, IWebHostEnvironment env,
                           IImageProcessService imageProcessService)
        {
            _settings            = settings;
            _repository          = repository;
            _imageProcessService = imageProcessService;

            _uploadImageRootPath = Path.Combine(env.WebRootPath, _settings.UploadImageRootPath);
            if (!Directory.Exists(_uploadImageRootPath))
            {
                Directory.CreateDirectory(_uploadImageRootPath);
            }

            var thumbRootPath = Path.Combine(env.WebRootPath, _settings.UploadImageRootPath, Config.Constants.Thumbs);

            if (!Directory.Exists(thumbRootPath))
            {
                Directory.CreateDirectory(thumbRootPath);
            }
        }
 public ImageService(IImageProcessService imageProcessService)
 {
     _imageProcessService = imageProcessService;
 }
 public MediaPickerService(IImageProcessService imageService)
 {
     this.imageService = imageService;
 }
 public ImageController(IImageProcessService imageProcessService) => _imageProcessService = imageProcessService;