From fe1834e6be044f0fdbe68fb34122c680f29ae04d Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Thu, 14 Mar 2013 15:52:53 -0400 Subject: Add resume capability to GetTempFile --- MediaBrowser.Common/Net/IHttpClient.cs | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'MediaBrowser.Common/Net/IHttpClient.cs') 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 /// The cancellation token. /// Task{Stream}. Task Post(string url, Dictionary postData, CancellationToken cancellationToken); - + /// /// Downloads the contents of a given url into a temporary location /// - /// The URL. - /// The resource pool. - /// The cancellation token. - /// The progress. - /// The user agent. + /// The options. /// Task{System.String}. /// progress /// - Task GetTempFile(string url, SemaphoreSlim resourcePool, CancellationToken cancellationToken, IProgress progress, string userAgent = null); - - /// - /// Gets the temp file. - /// - /// The URL. - /// The cancellation token. - /// The progress. - /// The user agent. - /// Task{System.String}. - Task GetTempFile(string url, CancellationToken cancellationToken, IProgress progress, string userAgent = null); + Task GetTempFile(HttpRequestOptions options); /// /// Downloads the contents of a given url into a MemoryStream -- cgit v1.2.3