From 1d50171490d6d4dbc025ef25bfbb373bc8a5331b Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 22 Sep 2021 08:14:01 -0500 Subject: one more move --- src/slskd/Startup.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/slskd/Startup.cs') diff --git a/src/slskd/Startup.cs b/src/slskd/Startup.cs index a9225434..47bbae68 100644 --- a/src/slskd/Startup.cs +++ b/src/slskd/Startup.cs @@ -35,6 +35,7 @@ namespace slskd using Serilog; using slskd.Authentication; using slskd.Core; + using slskd.Core.API; using slskd.Cryptography; using slskd.Integrations.FTP; using slskd.Integrations.Pushbullet; @@ -218,8 +219,8 @@ namespace slskd // add the core application service to DI as well as a hosted service so that other services can // access instance methods - services.AddSingleton(); - services.AddHostedService(p => p.GetRequiredService()); + services.AddSingleton(); + services.AddHostedService(p => p.GetRequiredService()); services.AddSingleton(); services.AddSingleton(); -- cgit v1.2.3