예제 #1
0
        public FileManager(FileStorageSettings fileStorageSettings, IImageResizer imageResizer)
        {
            Require.NotNull(fileStorageSettings, nameof(fileStorageSettings));

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

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