Skip to content

Commit 622b7d3

Browse files
authored
Set memory cache logger field as readonly (#37289)
1 parent 3099ce6 commit 622b7d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/Microsoft.Extensions.Caching.Memory/src/MemoryCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class MemoryCache : IMemoryCache
2323
private readonly ConcurrentDictionary<object, CacheEntry> _entries;
2424
private long _cacheSize;
2525
private bool _disposed;
26-
private ILogger _logger;
26+
private readonly ILogger _logger;
2727

2828
// We store the delegates locally to prevent allocations
2929
// every time a new CacheEntry is created.

0 commit comments

Comments
 (0)