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/HttpRequestOptions.cs | 47 +++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 MediaBrowser.Common/Net/HttpRequestOptions.cs (limited to 'MediaBrowser.Common/Net/HttpRequestOptions.cs') diff --git a/MediaBrowser.Common/Net/HttpRequestOptions.cs b/MediaBrowser.Common/Net/HttpRequestOptions.cs new file mode 100644 index 000000000..a45acb206 --- /dev/null +++ b/MediaBrowser.Common/Net/HttpRequestOptions.cs @@ -0,0 +1,47 @@ +using System; +using System.Threading; + +namespace MediaBrowser.Common.Net +{ + /// + /// Class HttpRequestOptions + /// + public class HttpRequestOptions + { + /// + /// Gets or sets the URL. + /// + /// The URL. + public string Url { get; set; } + + /// + /// Gets or sets the cancellation token. + /// + /// The cancellation token. + public CancellationToken CancellationToken { get; set; } + + /// + /// Gets or sets the resource pool. + /// + /// The resource pool. + public SemaphoreSlim ResourcePool { get; set; } + + /// + /// Gets or sets the user agent. + /// + /// The user agent. + public string UserAgent { get; set; } + + /// + /// Gets or sets the max resume count. + /// + /// The max resume count. + public int MaxResumeCount { get; set; } + + /// + /// Gets or sets the progress. + /// + /// The progress. + public IProgress Progress { get; set; } + } +} -- cgit v1.2.3