diff options
Diffstat (limited to 'src/slskd/Application/SharedFileCache.cs')
| -rw-r--r-- | src/slskd/Application/SharedFileCache.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/slskd/Application/SharedFileCache.cs b/src/slskd/Application/SharedFileCache.cs index 7bd30d2a..e1f3e96d 100644 --- a/src/slskd/Application/SharedFileCache.cs +++ b/src/slskd/Application/SharedFileCache.cs @@ -48,10 +48,11 @@ namespace slskd } /// <summary> - /// Gets the cache state. + /// Gets the cache state monitor. /// </summary> - public IStateMonitor<SharedFileCacheState> State { get; } = new StateMonitor<SharedFileCacheState>(); + public IStateMonitor<SharedFileCacheState> StateMonitor => State; + private IManagedState<SharedFileCacheState> State { get; } = new ManagedState<SharedFileCacheState>(); private ILogger Log { get; } = Serilog.Log.ForContext<SharedFileCache>(); private HashSet<string> MaskedDirectories { get; set; } private Dictionary<string, File> MaskedFiles { get; set; } |
