Skip to content

Commit

Permalink
adding comments and a new method to the WDC interface
Browse files Browse the repository at this point in the history
  • Loading branch information
skazantsev committed Apr 4, 2020
1 parent 5f79b57 commit 38f1a65
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/WebDav.Client/IWebDavClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ public interface IWebDavClient : IDisposable
/// <returns>An instance of <see cref="WebDavStreamResponse" />.</returns>
Task<WebDavStreamResponse> GetProcessedFile(Uri requestUri, GetFileParameters parameters);

/// <summary>
/// Retrieves the raw http response of a file identified by the request URI.
/// </summary>
/// <param name="requestUri">The <see cref="Uri"/> to request.</param>
/// <param name="translate">A parameter indicating if the response can be processed by the web server.</param>
/// <param name="parameters">Parameters of the GET operation.</param>
/// <returns>An instance of <see cref="HttpResponseMessage" />.</returns>
Task<HttpResponseMessage> GetFileResponse(Uri requestUri, bool translate, GetFileParameters parameters);

/// <summary>
/// Deletes the resource identified by the request URI.
/// </summary>
Expand Down
7 changes: 7 additions & 0 deletions src/WebDav.Client/WebDavClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,13 @@ internal virtual async Task<WebDavStreamResponse> GetFile(Uri requestUri, bool t
return new WebDavStreamResponse(response, stream);
}

/// <summary>
/// Retrieves the raw http response of a file identified by the request URI.
/// </summary>
/// <param name="requestUri">The <see cref="Uri"/> to request.</param>
/// <param name="translate">A parameter indicating if the response can be processed by the web server.</param>
/// <param name="parameters">Parameters of the GET operation.</param>
/// <returns>An instance of <see cref="HttpResponseMessage" />.</returns>
public async Task<HttpResponseMessage> GetFileResponse(Uri requestUri, bool translate, GetFileParameters parameters)
{
Guard.NotNull(requestUri, "requestUri");
Expand Down

0 comments on commit 38f1a65

Please sign in to comment.