aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Application/Management/API/Controllers/ConfigurationController.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-08-05 07:53:24 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-08-05 07:53:24 -0500
commita56bfb47abe33d259ba9d12d492123ab4baa3739 (patch)
tree74a52bed87b31733b79cf8b5c14e33a6c5efa479 /src/slskd/Application/Management/API/Controllers/ConfigurationController.cs
parent86aeebf6a900e44461aa0094b8bf3cf1d81adcbe (diff)
downloadslskd-a56bfb47abe33d259ba9d12d492123ab4baa3739.tar.gz
rename more stuff
Diffstat (limited to 'src/slskd/Application/Management/API/Controllers/ConfigurationController.cs')
-rw-r--r--src/slskd/Application/Management/API/Controllers/ConfigurationController.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/slskd/Application/Management/API/Controllers/ConfigurationController.cs b/src/slskd/Application/Management/API/Controllers/ConfigurationController.cs
index c44cf2f2..f2b90718 100644
--- a/src/slskd/Application/Management/API/Controllers/ConfigurationController.cs
+++ b/src/slskd/Application/Management/API/Controllers/ConfigurationController.cs
@@ -17,12 +17,11 @@
using Microsoft.Extensions.Options;
-namespace slskd.Application.Management.API
+namespace slskd.Management.API
{
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using slskd.Management;
- using slskd.Shares;
/// <summary>
/// Configuration.
@@ -36,17 +35,14 @@ namespace slskd.Application.Management.API
{
public ConfigurationController(
IOptionsSnapshot<Options> optionsShapshot,
- IStateMonitor<SharedFileCacheState> sharedFileCacheMonitor,
IManagementService managementService)
{
OptionsShapshot = optionsShapshot;
- SharedFileCacheMonitor = sharedFileCacheMonitor;
ManagementService = managementService;
}
private IManagementService ManagementService { get; }
private IOptionsSnapshot<Options> OptionsShapshot { get; }
- private IStateMonitor<SharedFileCacheState> SharedFileCacheMonitor { get; }
[HttpGet]
[Route("")]
@@ -62,7 +58,7 @@ namespace slskd.Application.Management.API
[Authorize]
public IActionResult RescanSharesAsync()
{
- if (SharedFileCacheMonitor.CurrentValue.Filling)
+ if (ManagementService.SharedFileCacheState.Filling)
{
return Conflict("A share scan is already in progress.");
}