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 | |
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')
-rw-r--r-- | src/DotNetOpenAuth.OAuth/OAuth/Messages/AccessProtectedResourceRequest.cs | 8 | ||||
-rw-r--r-- | src/DotNetOpenAuth.OAuth/OAuth/Messages/SignedMessageBase.cs | 5 |
2 files changed, 8 insertions, 5 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 diff --git a/src/DotNetOpenAuth.OAuth/OAuth/Messages/SignedMessageBase.cs b/src/DotNetOpenAuth.OAuth/OAuth/Messages/SignedMessageBase.cs index 6af75ec..7bc5b7d 100644 --- a/src/DotNetOpenAuth.OAuth/OAuth/Messages/SignedMessageBase.cs +++ b/src/DotNetOpenAuth.OAuth/OAuth/Messages/SignedMessageBase.cs @@ -8,6 +8,7 @@ namespace DotNetOpenAuth.OAuth.Messages { using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; + using System.Net.Http; using DotNetOpenAuth.Messaging; using DotNetOpenAuth.Messaging.Bindings; using DotNetOpenAuth.OAuth.ChannelElements; @@ -75,7 +76,7 @@ namespace DotNetOpenAuth.OAuth.Messages { /// <summary> /// Gets or sets the HTTP method that will be used to transmit the message. /// </summary> - string ITamperResistantOAuthMessage.HttpMethod { + HttpMethod ITamperResistantOAuthMessage.HttpMethod { get { return this.HttpMethod; } set { this.HttpMethod = value; } } @@ -169,7 +170,7 @@ namespace DotNetOpenAuth.OAuth.Messages { /// <summary> /// Gets or sets the HTTP method that will be used to transmit the message. /// </summary> - protected string HttpMethod { get; set; } + protected HttpMethod HttpMethod { get; set; } /// <summary> /// Gets or sets the message signature. |