Example #1
0
        public FileManager(IOptions <FileStorageSettings> fileStorageSettings, IImageResizer imageResizer)
        {
            _fileStorageSettings = fileStorageSettings.Value;
            _imageResizer        = imageResizer;

            CreateFoldersIfNeeded();
        }
Example #2
0
 public ImageResizer(IOptions <FileStorageSettings> fileStorageSettings)
 {
     _fileStorageSettings = fileStorageSettings.Value;
 }