diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Network/NetworkService.cs | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ -38,6 +38,11 @@ namespace slskd.Network ReadOnlyDictionary<Guid, (TaskCompletionSource<Stream> Stream, TaskCompletionSource Completion)> PendingFileUploads { get; } /// <summary> + /// Gets the name of the local host. + /// </summary> + string LocalHostName { get; } + + /// <summary> /// Gets the collection of registered Agents. /// </summary> ReadOnlyCollection<Agent> RegisteredAgents { get; } @@ -163,6 +168,11 @@ namespace slskd.Network /// </summary> public ReadOnlyCollection<Agent> RegisteredAgents => RegisteredAgentDictionary.Values.Select(v => v.Agent).ToList().AsReadOnly(); + /// <summary> + /// Gets the name of the local host. + /// </summary> + public string LocalHostName => "local"; + private ILogger Log { get; } = Serilog.Log.ForContext<NetworkService>(); private MemoryCache MemoryCache { get; } = new MemoryCache(new MemoryCacheOptions()); private IHubContext<NetworkHub, INetworkHub> NetworkHub { get; set; } |
