diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-09-21 09:32:57 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-09-21 09:32:57 -0500 |
| commit | 922215f8e72e68b612a62f7762858b093f4b70d9 (patch) | |
| tree | f27d938fcc3b3dd9b69772b6d022ee36505210df /src | |
| parent | 0eb773dbd4aa2fe971bc55e5c5f12413003296bb (diff) | |
| download | slskd-922215f8e72e68b612a62f7762858b093f4b70d9.tar.gz | |
more moves
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Core/API/DTO/ServerState.cs | 2 | ||||
| -rw-r--r-- | src/slskd/Core/API/Hubs/ApplicationHub.cs | 2 | ||||
| -rw-r--r-- | src/slskd/Core/Application.cs (renamed from src/slskd/Application.cs) | 4 | ||||
| -rw-r--r-- | src/slskd/Core/State.cs (renamed from src/slskd/State.cs) | 2 | ||||
| -rw-r--r-- | src/slskd/Startup.cs | 6 |
5 files changed, 8 insertions, 8 deletions
diff --git a/src/slskd/Core/API/DTO/ServerState.cs b/src/slskd/Core/API/DTO/ServerState.cs index 5dd16365..ec0aa937 100644 --- a/src/slskd/Core/API/DTO/ServerState.cs +++ b/src/slskd/Core/API/DTO/ServerState.cs @@ -15,7 +15,7 @@ // along with this program. If not, see https://www.gnu.org/licenses/. // </copyright> -namespace slskd.Core +namespace slskd.Core.API { using System.Net; using Soulseek; diff --git a/src/slskd/Core/API/Hubs/ApplicationHub.cs b/src/slskd/Core/API/Hubs/ApplicationHub.cs index be6c2fe7..90dc469f 100644 --- a/src/slskd/Core/API/Hubs/ApplicationHub.cs +++ b/src/slskd/Core/API/Hubs/ApplicationHub.cs @@ -15,7 +15,7 @@ // along with this program. If not, see https://www.gnu.org/licenses/. // </copyright> -namespace slskd.Core +namespace slskd.Core.API { using System.Threading.Tasks; using Microsoft.AspNetCore.SignalR; diff --git a/src/slskd/Application.cs b/src/slskd/Core/Application.cs index 0c95edeb..f934409b 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Core/Application.cs @@ -17,7 +17,7 @@ using Microsoft.Extensions.Options; -namespace slskd +namespace slskd.Core { using System; using System.Collections.Concurrent; @@ -32,7 +32,7 @@ namespace slskd using Serilog; using Serilog.Events; using slskd.Configuration; - using slskd.Core; + using slskd.Core.API; using slskd.Integrations.Pushbullet; using slskd.Messaging; using slskd.Search; diff --git a/src/slskd/State.cs b/src/slskd/Core/State.cs index bff2dc5b..f0e1e713 100644 --- a/src/slskd/State.cs +++ b/src/slskd/Core/State.cs @@ -15,7 +15,7 @@ // along with this program. If not, see https://www.gnu.org/licenses/. // </copyright> -namespace slskd +namespace slskd.Core { using System; using System.Net; diff --git a/src/slskd/Startup.cs b/src/slskd/Startup.cs index 2f50cf59..a9225434 100644 --- a/src/slskd/Startup.cs +++ b/src/slskd/Startup.cs @@ -216,10 +216,10 @@ namespace slskd services.AddSingleton<ISoulseekClient, SoulseekClient>(_ => new SoulseekClient(options: new SoulseekClientOptions(minimumDiagnosticLevel: OptionsAtStartup.Soulseek.DiagnosticLevel))); - // add Application to DI as well as a hosted service so that other services can + // add the core application service to DI as well as a hosted service so that other services can // access instance methods - services.AddSingleton<IApplication, Application>(); - services.AddHostedService(p => p.GetRequiredService<IApplication>()); + services.AddSingleton<IService, Application>(); + services.AddHostedService(p => p.GetRequiredService<IService>()); services.AddSingleton<ITransferTracker, TransferTracker>(); services.AddSingleton<IBrowseTracker, BrowseTracker>(); |
