aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd')
-rw-r--r--src/slskd/Application.cs (renamed from src/slskd/Core/Application.cs)2
-rw-r--r--src/slskd/Startup.cs5
-rw-r--r--src/slskd/State.cs (renamed from src/slskd/Core/State.cs)2
3 files changed, 5 insertions, 4 deletions
diff --git a/src/slskd/Core/Application.cs b/src/slskd/Application.cs
index f934409b..dfdd2d78 100644
--- a/src/slskd/Core/Application.cs
+++ b/src/slskd/Application.cs
@@ -17,7 +17,7 @@
using Microsoft.Extensions.Options;
-namespace slskd.Core
+namespace slskd
{
using System;
using System.Collections.Concurrent;
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<IService, Application>();
- services.AddHostedService(p => p.GetRequiredService<IService>());
+ services.AddSingleton<IApplication, Application>();
+ services.AddHostedService(p => p.GetRequiredService<IApplication>());
services.AddSingleton<ITransferTracker, TransferTracker>();
services.AddSingleton<IBrowseTracker, BrowseTracker>();
diff --git a/src/slskd/Core/State.cs b/src/slskd/State.cs
index f0e1e713..bff2dc5b 100644
--- a/src/slskd/Core/State.cs
+++ b/src/slskd/State.cs
@@ -15,7 +15,7 @@
// along with this program. If not, see https://www.gnu.org/licenses/.
// </copyright>
-namespace slskd.Core
+namespace slskd
{
using System;
using System.Net;