diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-14 15:52:53 -0400 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-14 15:52:53 -0400 |
| commit | fe1834e6be044f0fdbe68fb34122c680f29ae04d (patch) | |
| tree | d5ec27cc5835dd05d15551523b2fa93870dfbd4a /MediaBrowser.Common/Net/IHttpClient.cs | |
| parent | a7f06c84b14ea79ce5af8e928597f6fd119088a3 (diff) | |
Add resume capability to GetTempFile
Diffstat (limited to 'MediaBrowser.Common/Net/IHttpClient.cs')
| -rw-r--r-- | MediaBrowser.Common/Net/IHttpClient.cs | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/MediaBrowser.Common/Net/IHttpClient.cs b/MediaBrowser.Common/Net/IHttpClient.cs index cec3ccff2..f443341a0 100644 --- a/MediaBrowser.Common/Net/IHttpClient.cs +++ b/MediaBrowser.Common/Net/IHttpClient.cs @@ -49,29 +49,15 @@ namespace MediaBrowser.Common.Net /// <param name="cancellationToken">The cancellation token.</param> /// <returns>Task{Stream}.</returns> Task<Stream> Post(string url, Dictionary<string, string> postData, CancellationToken cancellationToken); - + /// <summary> /// Downloads the contents of a given url into a temporary location /// </summary> - /// <param name="url">The URL.</param> - /// <param name="resourcePool">The resource pool.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <param name="progress">The progress.</param> - /// <param name="userAgent">The user agent.</param> + /// <param name="options">The options.</param> /// <returns>Task{System.String}.</returns> /// <exception cref="System.ArgumentNullException">progress</exception> /// <exception cref="MediaBrowser.Model.Net.HttpException"></exception> - Task<string> GetTempFile(string url, SemaphoreSlim resourcePool, CancellationToken cancellationToken, IProgress<double> progress, string userAgent = null); - - /// <summary> - /// Gets the temp file. - /// </summary> - /// <param name="url">The URL.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <param name="progress">The progress.</param> - /// <param name="userAgent">The user agent.</param> - /// <returns>Task{System.String}.</returns> - Task<string> GetTempFile(string url, CancellationToken cancellationToken, IProgress<double> progress, string userAgent = null); + Task<string> GetTempFile(HttpRequestOptions options); /// <summary> /// Downloads the contents of a given url into a MemoryStream |
