aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Net/HttpRequestOptions.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-03-14 16:25:17 -0400
committerEric Reed <ebr@mediabrowser3.com>2013-03-14 16:25:17 -0400
commit65303c881664e911f9dbad5ff26b9f3dd01f67f7 (patch)
tree76e8ace586370c0a9754f3a0c058257983e2aa7f /MediaBrowser.Common/Net/HttpRequestOptions.cs
parent89e6124a5df31ceb3075a06007dfa3ca2ae57198 (diff)
parent08f0ba83357e95f4d2aa289bd893bae9b7c1d2bb (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Common/Net/HttpRequestOptions.cs')
-rw-r--r--MediaBrowser.Common/Net/HttpRequestOptions.cs47
1 files changed, 47 insertions, 0 deletions
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
+{
+ /// <summary>
+ /// Class HttpRequestOptions
+ /// </summary>
+ public class HttpRequestOptions
+ {
+ /// <summary>
+ /// Gets or sets the URL.
+ /// </summary>
+ /// <value>The URL.</value>
+ public string Url { get; set; }
+
+ /// <summary>
+ /// Gets or sets the cancellation token.
+ /// </summary>
+ /// <value>The cancellation token.</value>
+ public CancellationToken CancellationToken { get; set; }
+
+ /// <summary>
+ /// Gets or sets the resource pool.
+ /// </summary>
+ /// <value>The resource pool.</value>
+ public SemaphoreSlim ResourcePool { get; set; }
+
+ /// <summary>
+ /// Gets or sets the user agent.
+ /// </summary>
+ /// <value>The user agent.</value>
+ public string UserAgent { get; set; }
+
+ /// <summary>
+ /// Gets or sets the max resume count.
+ /// </summary>
+ /// <value>The max resume count.</value>
+ public int MaxResumeCount { get; set; }
+
+ /// <summary>
+ /// Gets or sets the progress.
+ /// </summary>
+ /// <value>The progress.</value>
+ public IProgress<double> Progress { get; set; }
+ }
+}