diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-03-14 20:42:33 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-03-14 20:42:33 -0700 |
commit | f4f32954757f128a3c4107df55c674be6314a8d3 (patch) | |
tree | f39c8968c8129197016c2f6102b481fb78002af8 /src/DotNetOpenAuth.Core/Messaging/IDataBagFormatter.cs | |
parent | 6c29eba4701e48222941981d499eb08686788a22 (diff) | |
download | DotNetOpenAuth-f4f32954757f128a3c4107df55c674be6314a8d3.zip DotNetOpenAuth-f4f32954757f128a3c4107df55c674be6314a8d3.tar.gz DotNetOpenAuth-f4f32954757f128a3c4107df55c674be6314a8d3.tar.bz2 |
Fixed error message generated in exception thrown for bad access token requests.
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/IDataBagFormatter.cs')
-rw-r--r-- | src/DotNetOpenAuth.Core/Messaging/IDataBagFormatter.cs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/IDataBagFormatter.cs b/src/DotNetOpenAuth.Core/Messaging/IDataBagFormatter.cs index 5e07bc6..c208afc 100644 --- a/src/DotNetOpenAuth.Core/Messaging/IDataBagFormatter.cs +++ b/src/DotNetOpenAuth.Core/Messaging/IDataBagFormatter.cs @@ -24,10 +24,13 @@ namespace DotNetOpenAuth.Messaging { /// <summary> /// Deserializes a <see cref="DataBag"/>. /// </summary> - /// <param name="containingMessage">The message that contains the <see cref="DataBag"/> serialized value. Must not be nulll.</param> + /// <param name="containingMessage">The message that contains the <see cref="DataBag"/> serialized value. Must not be null.</param> /// <param name="data">The serialized form of the <see cref="DataBag"/> to deserialize. Must not be null or empty.</param> - /// <returns>The deserialized value. Never null.</returns> - T Deserialize(IProtocolMessage containingMessage, string data); + /// <param name="messagePartName">The name of the parameter whose value is to be deserialized. Used for error message generation.</param> + /// <returns> + /// The deserialized value. Never null. + /// </returns> + T Deserialize(IProtocolMessage containingMessage, string data, string messagePartName); } /// <summary> @@ -62,9 +65,10 @@ namespace DotNetOpenAuth.Messaging { /// <param name="containingMessage">The message that contains the <see cref="DataBag"/> serialized value. Must not be nulll.</param> /// <param name="data">The serialized form of the <see cref="DataBag"/> to deserialize. Must not be null or empty.</param> /// <returns>The deserialized value. Never null.</returns> - T IDataBagFormatter<T>.Deserialize(IProtocolMessage containingMessage, string data) { + T IDataBagFormatter<T>.Deserialize(IProtocolMessage containingMessage, string data, string messagePartName) { Requires.NotNull(containingMessage, "containingMessage"); Requires.NotNullOrEmpty(data, "data"); + Requires.NotNullOrEmpty(messagePartName, "messagePartName"); Contract.Ensures(Contract.Result<T>() != null); throw new System.NotImplementedException(); |