Beispiel #1
0
 public PhotoService(
     IMemoryCache cache,
     CacheSignal <Photo> cacheSignal,
     ILogger <PhotoService> logger) =>
 (_cache, _cacheSignal, _logger) = (cache, cacheSignal, logger);
Beispiel #2
0
 public CacheWorker(
     ILogger <CacheWorker> logger,
     HttpClient httpClient,
     CacheSignal <Photo> cacheSignal,
     IMemoryCache cache) =>
 (_logger, _httpClient, _cacheSignal, _cache) = (logger, httpClient, cacheSignal, cache);