Ejemplo n.º 1
0
 public ImageCompressor(
     IConfiguration configuration,
     SizeCalculator sizeCalculator)
 {
     _configuration  = configuration;
     _sizeCalculator = sizeCalculator;
 }
Ejemplo n.º 2
0
 public ImageCompressor(
     IConfiguration configuration,
     SizeCalculator sizeCalculator)
 {
     _sizeCalculator = sizeCalculator;
     _tempFilePath   = configuration["TempFileStoragePath"];
     if (string.IsNullOrWhiteSpace(_tempFilePath))
     {
         _tempFilePath = configuration["StoragePath"];
     }
 }