From 38f1a65a4b980c4932b5b2d34927cabadf73bf60 Mon Sep 17 00:00:00 2001 From: skazantsev Date: Sat, 4 Apr 2020 18:04:44 +0200 Subject: [PATCH] adding comments and a new method to the WDC interface --- src/WebDav.Client/IWebDavClient.cs | 9 +++++++++ src/WebDav.Client/WebDavClient.cs | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/src/WebDav.Client/IWebDavClient.cs b/src/WebDav.Client/IWebDavClient.cs index 76f6520..9af71ba 100644 --- a/src/WebDav.Client/IWebDavClient.cs +++ b/src/WebDav.Client/IWebDavClient.cs @@ -146,6 +146,15 @@ public interface IWebDavClient : IDisposable /// An instance of . Task GetProcessedFile(Uri requestUri, GetFileParameters parameters); + /// + /// Retrieves the raw http response of a file identified by the request URI. + /// + /// The to request. + /// A parameter indicating if the response can be processed by the web server. + /// Parameters of the GET operation. + /// An instance of . + Task GetFileResponse(Uri requestUri, bool translate, GetFileParameters parameters); + /// /// Deletes the resource identified by the request URI. /// diff --git a/src/WebDav.Client/WebDavClient.cs b/src/WebDav.Client/WebDavClient.cs index aa5c08f..39bdba2 100644 --- a/src/WebDav.Client/WebDavClient.cs +++ b/src/WebDav.Client/WebDavClient.cs @@ -293,6 +293,13 @@ internal virtual async Task GetFile(Uri requestUri, bool t return new WebDavStreamResponse(response, stream); } + /// + /// Retrieves the raw http response of a file identified by the request URI. + /// + /// The to request. + /// A parameter indicating if the response can be processed by the web server. + /// Parameters of the GET operation. + /// An instance of . public async Task GetFileResponse(Uri requestUri, bool translate, GetFileParameters parameters) { Guard.NotNull(requestUri, "requestUri");