From 1e27fdb2e5de7de63fdabcd2b36607658edd2bf7 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 22 Oct 2022 09:38:53 -0500 Subject: rename GetFileUpload to GetFile --- src/slskd/Network/NetworkService.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/slskd/Network/NetworkService.cs') 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); /// - /// Retrieves an upload of the specified from the specified . + /// Retrieves a stream of the specified from the specified . /// /// The agent from which to retrieve the file. /// The file to retrieve. /// An optional timeout value. /// The operation context, including a stream containing the requested file, and an upload TaskCompletionSource. - 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); /// /// Registers the specified with the specified . @@ -111,10 +111,10 @@ namespace slskd.Network /// Validates an authentication challenge response. /// /// The ID of the agent connection. - /// The agent name. + /// The agent name. /// The challenge response provided by the agent. /// A value indicating whether the response is valid. - bool TryValidateAuthenticationChallengeResponse(string connectionId, string agent, string challengeResponse); + bool TryValidateAuthenticationChallengeResponse(string connectionId, string agentName, string challengeResponse); /// /// Attempts to retrieve the specified share upload . @@ -242,13 +242,13 @@ namespace slskd.Network } /// - /// Retrieves an upload of the specified from the specified . + /// Retrieves a stream of the specified from the specified . /// /// The agent from which to retrieve the file. /// The file to retrieve. /// An optional timeout value. /// The operation context, including a stream containing the requested file, and an upload TaskCompletionSource. - 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(); -- cgit v1.2.3