diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-11-16 06:15:19 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-11-16 06:15:19 +0100 |
| commit | e2258afd01e86e0d46a03fa910412fa0827b2b5b (patch) | |
| tree | b70c2d13720610be4518918481ee01aad2ccefec /src/Services/GrabberService.cs | |
| parent | a7e7d83057503262a9f2b56c4fb0c18e3f8ea15c (diff) | |
| download | lettnytt-e2258afd01e86e0d46a03fa910412fa0827b2b5b.tar.xz lettnytt-e2258afd01e86e0d46a03fa910412fa0827b2b5b.zip | |
fix: Correct injection of memory cache
Diffstat (limited to 'src/Services/GrabberService.cs')
| -rw-r--r-- | src/Services/GrabberService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Services/GrabberService.cs b/src/Services/GrabberService.cs index 4a92517..3974a9e 100644 --- a/src/Services/GrabberService.cs +++ b/src/Services/GrabberService.cs @@ -9,7 +9,7 @@ namespace I2R.LightNews.Services; public class GrabberService { private readonly ILogger<GrabberService> _logger; - private readonly MemoryCache _memoryCache; + private readonly IMemoryCache _memoryCache; private readonly HttpClient _http; private const string NrkPrefix = "nrkno"; private const int StaleTime = 1800; @@ -18,7 +18,7 @@ public class GrabberService HostPath = "AppData/__sitecache" }; - public GrabberService(ILogger<GrabberService> logger, HttpClient http, MemoryCache memoryCache) { + public GrabberService(ILogger<GrabberService> logger, HttpClient http, IMemoryCache memoryCache) { _logger = logger; _http = http; _memoryCache = memoryCache; |
