aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-10-05 08:27:09 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-10-05 08:27:09 -0500
commit869bbac175c9ee55a6e0ed4c30237ec969e48dc0 (patch)
tree814080998abb27aa0edf07585b9833c5c56c4535 /src
parent9e9d63b36ed8aed0a1d00ee819cf48de60d22565 (diff)
downloadslskd-869bbac175c9ee55a6e0ed4c30237ec969e48dc0.tar.gz
Log -> Logs
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs4
-rw-r--r--src/slskd/Core/API/Hubs/LogsHub.cs (renamed from src/slskd/Core/API/Hubs/LogHub.cs)6
-rw-r--r--src/slskd/Startup.cs2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index b6d29d6b..1027d7f3 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -65,7 +65,7 @@ namespace slskd
ISharedFileCache sharedFileCache,
IPushbulletService pushbulletService,
IHubContext<ApplicationHub> applicationHub,
- IHubContext<LogHub> logHub)
+ IHubContext<LogsHub> logHub)
{
OptionsAtStartup = optionsAtStartup;
@@ -132,7 +132,7 @@ namespace slskd
private IManagedState<State> State { get; }
private ITransferTracker TransferTracker { get; set; }
private IHubContext<ApplicationHub> ApplicationHub { get; set; }
- private IHubContext<LogHub> LogHub { get; set; }
+ private IHubContext<LogsHub> LogHub { get; set; }
/// <summary>
/// Gets the version of the latest application release.
diff --git a/src/slskd/Core/API/Hubs/LogHub.cs b/src/slskd/Core/API/Hubs/LogsHub.cs
index 18d12e1c..7c14cc17 100644
--- a/src/slskd/Core/API/Hubs/LogHub.cs
+++ b/src/slskd/Core/API/Hubs/LogsHub.cs
@@ -1,4 +1,4 @@
-// <copyright file="LogHub.cs" company="slskd Team">
+// <copyright file="LogsHub.cs" company="slskd Team">
// Copyright (c) slskd Team. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify
@@ -38,7 +38,7 @@ namespace slskd.Core.API
/// <param name="hub">The hub.</param>
/// <param name="record">The log record to broadcast.</param>
/// <returns>The operation context.</returns>
- public static Task EmitLogAsync(this IHubContext<LogHub> hub, LogRecord record)
+ public static Task EmitLogAsync(this IHubContext<LogsHub> hub, LogRecord record)
{
return hub.Clients.All.SendAsync(LogHubMethods.Log, record);
}
@@ -48,7 +48,7 @@ namespace slskd.Core.API
/// The logs SignalR hub.
/// </summary>
[Authorize]
- public class LogHub : Hub
+ public class LogsHub : Hub
{
public override async Task OnConnectedAsync()
{
diff --git a/src/slskd/Startup.cs b/src/slskd/Startup.cs
index f848c4aa..322d8ed8 100644
--- a/src/slskd/Startup.cs
+++ b/src/slskd/Startup.cs
@@ -333,7 +333,7 @@ namespace slskd
app.UseEndpoints(endpoints =>
{
endpoints.MapHub<ApplicationHub>("/hub/application");
- endpoints.MapHub<LogHub>("/hub/log");
+ endpoints.MapHub<LogsHub>("/hub/logs");
endpoints.MapControllers();
endpoints.MapHealthChecks("/health");