From d1637bafbff1d9cbf64bb8702ed48513b7edfcc6 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 13 Jul 2021 18:14:02 -0500 Subject: use startup options --- src/slskd/Application/Management/API/Controllers/SessionController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 optionsSnapshot, + Options optionsSnapshotAtStartup, SymmetricSecurityKey jwtSigningKey) { - Options = optionsSnapshot.Value; + Options = optionsSnapshotAtStartup; JwtSigningKey = jwtSigningKey; } -- cgit v1.2.3