Ejemplo n.º 1
0
 public ImageUploadService(ILogger <ImageUploadService> logger, IImageMetadataReader metadataReader, IImageBlobStorage blobStorage, IImageMetadataStorage metadataStorage,
                           IOptions <ImageLimitationSettings> limitationSettings, IImageIdentifierProvider imageIdentifierProvider)
 {
     _logger                  = logger;
     _metadataReader          = metadataReader;
     _blobStorage             = blobStorage;
     _metadataStorage         = metadataStorage;
     _limitationSettings      = limitationSettings;
     _imageIdentifierProvider = imageIdentifierProvider;
 }
Ejemplo n.º 2
0
 public ImageThumbnailService(ILogger <ImageThumbnailService> logger, IImageResizing imageResizing,
                              IImageBlobStorage blobStorage, IImageMetadataStorage metadataStorage, IImageIdentifierProvider imageIdentifierProvider,
                              IOptions <ImageThumbnailsSettings> imageThumbnailsSettings)
 {
     _logger                  = logger;
     _imageResizing           = imageResizing;
     _blobStorage             = blobStorage;
     _metadataStorage         = metadataStorage;
     _imageIdentifierProvider = imageIdentifierProvider;
     _thumbnailTargetWidth    = imageThumbnailsSettings.Value.TargetWidth.OrderByDescending(x => x).ToList();
 }
        public ThumbnailsGeneratingTests(ITestOutputHelper output)
        {
            IImageResizing imageResizing = new ImageResizing();

            _blobStorage     = new MockImageBlobStorage();
            _metadataStorage = new MockImageMetadataStorage();

            IImageIdentifierProvider imageIdentifierProvider = new ImageIdentifierProvider();

            _thumbnailsService = new ImageThumbnailService(output.BuildLoggerFor <ImageThumbnailService>(), imageResizing, _blobStorage, _metadataStorage, imageIdentifierProvider, this);
        }
Ejemplo n.º 4
0
 public ImageSearchService(ILogger <ImageSearchService> logger, IImageMetadataStorage metadataStorage, IImageBlobStorage blobStorage)
 {
     _logger          = logger;
     _metadataStorage = metadataStorage;
     _blobStorage     = blobStorage;
 }