From 8d0c182748158a5a954ad9efc1f237c63eafb681 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 23 Oct 2022 13:37:31 -0500 Subject: add LocalHostName --- src/slskd/Network/NetworkService.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/slskd/Network/NetworkService.cs b/src/slskd/Network/NetworkService.cs index 265e5526..792be99c 100644 --- a/src/slskd/Network/NetworkService.cs +++ b/src/slskd/Network/NetworkService.cs @@ -37,6 +37,11 @@ namespace slskd.Network /// ReadOnlyDictionary Stream, TaskCompletionSource Completion)> PendingFileUploads { get; } + /// + /// Gets the name of the local host. + /// + string LocalHostName { get; } + /// /// Gets the collection of registered Agents. /// @@ -163,6 +168,11 @@ namespace slskd.Network /// public ReadOnlyCollection RegisteredAgents => RegisteredAgentDictionary.Values.Select(v => v.Agent).ToList().AsReadOnly(); + /// + /// Gets the name of the local host. + /// + public string LocalHostName => "local"; + private ILogger Log { get; } = Serilog.Log.ForContext(); private MemoryCache MemoryCache { get; } = new MemoryCache(new MemoryCacheOptions()); private IHubContext NetworkHub { get; set; } -- cgit v1.2.3