diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-01-13 17:00:58 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-01-13 17:00:58 -0800 |
commit | 56916052cb61a48a85c5920f266766cfc937ece4 (patch) | |
tree | 372b8aeeae54e3bf268a482272819d17b3ab048d /src/DotNetOpenAuth.OAuth/OAuth/Messages/AccessProtectedResourceRequest.cs | |
parent | e117dedb1c2de355dae0bb3eedaa7b06deb0770e (diff) | |
download | DotNetOpenAuth-56916052cb61a48a85c5920f266766cfc937ece4.zip DotNetOpenAuth-56916052cb61a48a85c5920f266766cfc937ece4.tar.gz DotNetOpenAuth-56916052cb61a48a85c5920f266766cfc937ece4.tar.bz2 |
DNOA.OAuth project now builds.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth/OAuth/Messages/AccessProtectedResourceRequest.cs')
-rw-r--r-- | src/DotNetOpenAuth.OAuth/OAuth/Messages/AccessProtectedResourceRequest.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.OAuth/OAuth/Messages/AccessProtectedResourceRequest.cs b/src/DotNetOpenAuth.OAuth/OAuth/Messages/AccessProtectedResourceRequest.cs index aeee649..77b1733 100644 --- a/src/DotNetOpenAuth.OAuth/OAuth/Messages/AccessProtectedResourceRequest.cs +++ b/src/DotNetOpenAuth.OAuth/OAuth/Messages/AccessProtectedResourceRequest.cs @@ -8,6 +8,8 @@ namespace DotNetOpenAuth.OAuth.Messages { using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; + using System.Net.Http; + using DotNetOpenAuth.Messaging; /// <summary> @@ -18,7 +20,7 @@ namespace DotNetOpenAuth.OAuth.Messages { /// <summary> /// A store for the binary data that is carried in the message. /// </summary> - private List<MultipartPostPart> binaryData = new List<MultipartPostPart>(); + private Dictionary<string, HttpContent> binaryData = new Dictionary<string, HttpContent>(); /// <summary> /// Initializes a new instance of the <see cref="AccessProtectedResourceRequest"/> class. @@ -56,7 +58,7 @@ namespace DotNetOpenAuth.OAuth.Messages { /// Gets the parts of the message that carry binary data. /// </summary> /// <value>A list of parts. Never null.</value> - public IList<MultipartPostPart> BinaryData { + public IDictionary<string, HttpContent> BinaryData { get { return this.binaryData; } } @@ -64,7 +66,7 @@ namespace DotNetOpenAuth.OAuth.Messages { /// Gets a value indicating whether this message should be sent as multi-part POST. /// </summary> public bool SendAsMultipart { - get { return this.HttpMethod == "POST" && this.BinaryData.Count > 0; } + get { return this.HttpMethod == HttpMethod.Post && this.BinaryData.Count > 0; } } #endregion |