From 44feab9eb2a1f71b2dca5dcd633eb700a95050c5 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Sat, 17 Dec 2022 11:39:37 -0700 Subject: [PATCH] Update comments --- Source/AaxDecrypter/NetworkFileStream.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Source/AaxDecrypter/NetworkFileStream.cs b/Source/AaxDecrypter/NetworkFileStream.cs index 0b7b1d79..49a911db 100644 --- a/Source/AaxDecrypter/NetworkFileStream.cs +++ b/Source/AaxDecrypter/NetworkFileStream.cs @@ -83,7 +83,6 @@ namespace AaxDecrypter /// Http(s) address of the file to download. /// The position in to begin downloading. /// Http headers to be sent to the server with the . - /// A with cookies to send with the . It will also be populated with any cookies set by the server. public NetworkFileStream(string saveFilePath, Uri uri, long writePosition = 0, Dictionary requestHeaders = null) { ArgumentValidator.EnsureNotNullOrWhiteSpace(saveFilePath, nameof(saveFilePath)); @@ -145,9 +144,9 @@ namespace AaxDecrypter RequestHeaders["Range"] = $"bytes={WritePosition}-"; } - /// - /// Begins downloading to in a background thread. - /// + + /// Begins downloading to in a background thread. + /// The downloader private Task BeginDownloading() { if (ContentLength != 0 && WritePosition == ContentLength) @@ -179,9 +178,7 @@ namespace AaxDecrypter return Task.Run(() => DownloadFile(networkStream)); } - /// - /// Download to . - /// + /// Download to . private void DownloadFile(Stream networkStream) { var downloadPosition = WritePosition;