Esempio n. 1
0
 /// <summary>Ctor
 /// </summary>
 public ImageResizeService(IDistributedCache <ImageCacheItem> imageCache, ILoggerFactory loggerFactory, ImageResizerOption option)
 {
     _imageCache = imageCache;
     _logger     = loggerFactory.CreateLogger(DotCommonConsts.LoggerName);
     _option     = option;
 }
 /// <summary>Ctor
 /// </summary>
 public ImageResizeService(ILogger <ImageResizeService> logger, IDistributedCache <ImageCacheItem> imageCache, IOptions <ImageResizerOption> option)
 {
     _logger     = logger;
     _imageCache = imageCache;
     _option     = option.Value;
 }