Esempio n. 1
0
 public UnsplashServiceCached(ILogger <UnsplashService> logger,
                              UnsplashServiceOptions options,
                              IDistributedCache distributedCache)
     : base(logger, options)
 {
     _distributedCache = distributedCache ?? throw new ArgumentNullException(nameof(distributedCache));
 }
Esempio n. 2
0
 public UnsplashService(ILogger <UnsplashService> logger, UnsplashServiceOptions options)
 {
     _logger  = logger ?? throw new ArgumentNullException(nameof(logger));
     _options = options ?? throw new ArgumentNullException(nameof(options));
 }