public FileManager(FileStorageSettings fileStorageSettings, IImageResizer imageResizer) { Require.NotNull(fileStorageSettings, nameof(fileStorageSettings)); _fileStorageSettings = fileStorageSettings; _imageResizer = imageResizer; CreateFoldersIfNeeded(); }
public ImageResizer(int lengthOfLongestSideOfResized, FileStorageSettings fileStorageSettings, ApplicationLocationSettings applicationLocationSettings) { _lengthOfLongestSideOfResized = lengthOfLongestSideOfResized; this._fileStorageSettings = fileStorageSettings; _applicationLocationSettings = applicationLocationSettings; }