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