Esempio n. 1
0
        public FileManager(FileStorageSettings fileStorageSettings, IImageResizer imageResizer)
        {
            Require.NotNull(fileStorageSettings, nameof(fileStorageSettings));

            _fileStorageSettings = fileStorageSettings;
            _imageResizer        = imageResizer;
            CreateFoldersIfNeeded();
        }
Esempio n. 2
0
        public FileManager(FileStorageSettings fileStorageSettings, IImageResizer imageResizer)
        {
            Require.NotNull(fileStorageSettings, nameof(fileStorageSettings));

            _fileStorageSettings = fileStorageSettings;
            _imageResizer = imageResizer;
            CreateFoldersIfNeeded();
        }
Esempio n. 3
0
 public ImageResizer(int lengthOfLongestSideOfResized, FileStorageSettings fileStorageSettings, ApplicationLocationSettings applicationLocationSettings)
 {
     _lengthOfLongestSideOfResized = lengthOfLongestSideOfResized;
     this._fileStorageSettings = fileStorageSettings;
     _applicationLocationSettings = applicationLocationSettings;
 }
Esempio n. 4
0
 public ImageResizer(int lengthOfLongestSideOfResized, FileStorageSettings fileStorageSettings, ApplicationLocationSettings applicationLocationSettings)
 {
     _lengthOfLongestSideOfResized = lengthOfLongestSideOfResized;
     this._fileStorageSettings     = fileStorageSettings;
     _applicationLocationSettings  = applicationLocationSettings;
 }