aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Application/Management/API/Controllers/SessionController.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-07-13 18:14:02 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-07-13 18:14:02 -0500
commitd1637bafbff1d9cbf64bb8702ed48513b7edfcc6 (patch)
tree41df50fe74edc971d913bac2a2e81e1b2a4113d6 /src/slskd/Application/Management/API/Controllers/SessionController.cs
parent511860676eec56e3687397f11a04cc3db14fb4aa (diff)
downloadslskd-d1637bafbff1d9cbf64bb8702ed48513b7edfcc6.tar.gz
use startup options
Diffstat (limited to 'src/slskd/Application/Management/API/Controllers/SessionController.cs')
-rw-r--r--src/slskd/Application/Management/API/Controllers/SessionController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Application/Management/API/Controllers/SessionController.cs b/src/slskd/Application/Management/API/Controllers/SessionController.cs
index 09a95c24..511643a6 100644
--- a/src/slskd/Application/Management/API/Controllers/SessionController.cs
+++ b/src/slskd/Application/Management/API/Controllers/SessionController.cs
@@ -37,10 +37,10 @@ namespace slskd.Management.API
public class SessionController : ControllerBase
{
public SessionController(
- Microsoft.Extensions.Options.IOptionsSnapshot<Options> optionsSnapshot,
+ Options optionsSnapshotAtStartup,
SymmetricSecurityKey jwtSigningKey)
{
- Options = optionsSnapshot.Value;
+ Options = optionsSnapshotAtStartup;
JwtSigningKey = jwtSigningKey;
}