aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-10-09 08:57:09 -0500
committerJP Dillingham <jp@dillingham.me>2022-10-09 08:57:09 -0500
commit120c6d0631fbd9a9f2c262171e713fcc6df01ea2 (patch)
treefce8d10d9cd4fd79143af41318d2bce87b8f8285 /src/slskd/Program.cs
parent9af9f9119f32734414fa725a9d742448e937732b (diff)
downloadslskd-120c6d0631fbd9a9f2c262171e713fcc6df01ea2.tar.gz
rename Agents namespace to Network
Diffstat (limited to 'src/slskd/Program.cs')
-rw-r--r--src/slskd/Program.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 0de677a5..907090a5 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -32,7 +32,6 @@ namespace slskd
using System.Text.Json.Serialization;
using System.Threading;
using System.Threading.Tasks;
- using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.DataProtection;
@@ -52,7 +51,6 @@ namespace slskd
using Serilog;
using Serilog.Events;
using Serilog.Sinks.Grafana.Loki;
- using slskd.Agents;
using slskd.Authentication;
using slskd.Configuration;
using slskd.Core.API;
@@ -60,6 +58,7 @@ namespace slskd
using slskd.Integrations.FTP;
using slskd.Integrations.Pushbullet;
using slskd.Messaging;
+ using slskd.Network;
using slskd.Search;
using slskd.Search.API;
using slskd.Shares;
@@ -534,7 +533,7 @@ namespace slskd
services.AddSingleton<ITransferService, TransferService>();
services.AddSingleton<IDownloadService, DownloadService>();
services.AddSingleton<IUploadService, UploadService>();
- services.AddSingleton<IAgentService, AgentService>();
+ services.AddSingleton<INetworkService, NetworkService>();
services.AddSingleton<IFTPClientFactory, FTPClientFactory>();
services.AddSingleton<IFTPService, FTPService>();
@@ -750,7 +749,7 @@ namespace slskd
endpoints.MapHub<ApplicationHub>("/hub/application");
endpoints.MapHub<LogsHub>("/hub/logs");
endpoints.MapHub<SearchHub>("/hub/search");
- endpoints.MapHub<AgentHub>("/hub/agents");
+ endpoints.MapHub<NetworkHub>("/hub/agents");
endpoints.MapControllers();
endpoints.MapHealthChecks("/health");