From a363f956c9e8e923c647877832f3c3bb9f5c4351 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 11 Sep 2021 14:13:17 -0500 Subject: refactor state management --- src/slskd/Application/SharedFileCache.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/slskd/Application/SharedFileCache.cs') 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 } /// - /// Gets the cache state. + /// Gets the cache state monitor. /// - public IStateMonitor State { get; } = new StateMonitor(); + public IStateMonitor StateMonitor => State; + private IManagedState State { get; } = new ManagedState(); private ILogger Log { get; } = Serilog.Log.ForContext(); private HashSet MaskedDirectories { get; set; } private Dictionary MaskedFiles { get; set; } -- cgit v1.2.3