aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Files/FileService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Files/FileService.cs')
-rw-r--r--src/slskd/Files/FileService.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/slskd/Files/FileService.cs b/src/slskd/Files/FileService.cs
index c3da7621..18bf72d1 100644
--- a/src/slskd/Files/FileService.cs
+++ b/src/slskd/Files/FileService.cs
@@ -36,19 +36,19 @@ namespace slskd.Files
/// Initializes a new instance of the <see cref="FileService"/> class.
/// </summary>
public FileService(
- IOptionsSnapshot<Options> optionsSnapshot)
+ IOptionsMonitor<Options> optionsMonitor)
{
- OptionsSnapshot = optionsSnapshot;
+ OptionsMonitor = optionsMonitor;
}
private IEnumerable<string> AllowedDirectories => new[]
{
- Path.GetFullPath(OptionsSnapshot.Value.Directories.Downloads),
- Path.GetFullPath(OptionsSnapshot.Value.Directories.Incomplete),
+ Path.GetFullPath(OptionsMonitor.CurrentValue.Directories.Downloads),
+ Path.GetFullPath(OptionsMonitor.CurrentValue.Directories.Incomplete),
};
private ILogger Log { get; } = Serilog.Log.ForContext<FileService>();
- private IOptionsSnapshot<Options> OptionsSnapshot { get; }
+ private IOptionsMonitor<Options> OptionsMonitor { get; }
/// <summary>
/// Deletes the specified <paramref name="directories"/>.