aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/slskd/Network/NetworkService.cs12
-rw-r--r--src/slskd/Shares/ShareScanner.cs1
-rw-r--r--src/slskd/Transfers/Uploads/UploadService.cs2
3 files changed, 8 insertions, 7 deletions
diff --git a/src/slskd/Network/NetworkService.cs b/src/slskd/Network/NetworkService.cs
index 682985b9..8f25da5d 100644
--- a/src/slskd/Network/NetworkService.cs
+++ b/src/slskd/Network/NetworkService.cs
@@ -68,13 +68,13 @@ namespace slskd.Network
Task<(bool Exists, long Length)> GetFileInfo(string agentName, string filename, int timeout = 3000);
/// <summary>
- /// Retrieves an upload of the specified <paramref name="filename"/> from the specified <paramref name="agentName"/>.
+ /// Retrieves a stream of the specified <paramref name="filename"/> from the specified <paramref name="agentName"/>.
/// </summary>
/// <param name="agentName">The agent from which to retrieve the file.</param>
/// <param name="filename">The file to retrieve.</param>
/// <param name="timeout">An optional timeout value.</param>
/// <returns>The operation context, including a stream containing the requested file, and an upload TaskCompletionSource.</returns>
- Task<(Stream Stream, TaskCompletionSource Completion)> GetFileUpload(string agentName, string filename, int timeout = 3000);
+ Task<(Stream Stream, TaskCompletionSource Completion)> GetFile(string agentName, string filename, int timeout = 3000);
/// <summary>
/// Registers the specified <paramref name="agent"/> with the specified <paramref name="connectionId"/>.
@@ -111,10 +111,10 @@ namespace slskd.Network
/// Validates an authentication challenge response.
/// </summary>
/// <param name="connectionId">The ID of the agent connection.</param>
- /// <param name="agent">The agent name.</param>
+ /// <param name="agentName">The agent name.</param>
/// <param name="challengeResponse">The challenge response provided by the agent.</param>
/// <returns>A value indicating whether the response is valid.</returns>
- bool TryValidateAuthenticationChallengeResponse(string connectionId, string agent, string challengeResponse);
+ bool TryValidateAuthenticationChallengeResponse(string connectionId, string agentName, string challengeResponse);
/// <summary>
/// Attempts to retrieve the specified share upload <paramref name="token"/>.
@@ -242,13 +242,13 @@ namespace slskd.Network
}
/// <summary>
- /// Retrieves an upload of the specified <paramref name="filename"/> from the specified <paramref name="agentName"/>.
+ /// Retrieves a stream of the specified <paramref name="filename"/> from the specified <paramref name="agentName"/>.
/// </summary>
/// <param name="agentName">The agent from which to retrieve the file.</param>
/// <param name="filename">The file to retrieve.</param>
/// <param name="timeout">An optional timeout value.</param>
/// <returns>The operation context, including a stream containing the requested file, and an upload TaskCompletionSource.</returns>
- public async Task<(Stream Stream, TaskCompletionSource Completion)> GetFileUpload(string agentName, string filename, int timeout = 3000)
+ public async Task<(Stream Stream, TaskCompletionSource Completion)> GetFile(string agentName, string filename, int timeout = 3000)
{
var id = Guid.NewGuid();
diff --git a/src/slskd/Shares/ShareScanner.cs b/src/slskd/Shares/ShareScanner.cs
index 7a174396..de765308 100644
--- a/src/slskd/Shares/ShareScanner.cs
+++ b/src/slskd/Shares/ShareScanner.cs
@@ -64,6 +64,7 @@ namespace slskd.Shares
/// Initializes a new instance of the <see cref="ShareScanner"/> class.
/// </summary>
/// <param name="workerCount"></param>
+ /// <param name="shareRepository"></param>
/// <param name="soulseekFileFactory"></param>
public ShareScanner(
int workerCount,
diff --git a/src/slskd/Transfers/Uploads/UploadService.cs b/src/slskd/Transfers/Uploads/UploadService.cs
index 2af3005a..64a8f21e 100644
--- a/src/slskd/Transfers/Uploads/UploadService.cs
+++ b/src/slskd/Transfers/Uploads/UploadService.cs
@@ -273,7 +273,7 @@ namespace slskd.Transfers.Uploads
size: localFileLength,
inputStreamFactory: async () =>
{
- var (stream, completion) = await Network.GetFileUpload(agentName: host, filename);
+ var (stream, completion) = await Network.GetFile(agentName: host, filename);
uploadCompletion = completion;
return stream;
},