summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth/OAuthWrap/ChannelElements/DataBag.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth/OAuthWrap/ChannelElements/DataBag.cs')
-rw-r--r--src/DotNetOpenAuth/OAuthWrap/ChannelElements/DataBag.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/DataBag.cs b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/DataBag.cs
index d9e4ab6..6f6d5b6 100644
--- a/src/DotNetOpenAuth/OAuthWrap/ChannelElements/DataBag.cs
+++ b/src/DotNetOpenAuth/OAuthWrap/ChannelElements/DataBag.cs
@@ -161,6 +161,11 @@ namespace DotNetOpenAuth.OAuthWrap.ChannelElements {
internal DateTime UtcCreationDate { get; set; }
/// <summary>
+ /// Gets or sets the message that delivered this DataBag instance to this host.
+ /// </summary>
+ protected IProtocolMessage ContainingMessage { get; set; }
+
+ /// <summary>
/// Gets the type of this instance.
/// </summary>
/// <value>The type of the bag.</value>
@@ -221,6 +226,7 @@ namespace DotNetOpenAuth.OAuthWrap.ChannelElements {
Contract.Requires<ArgumentException>(!String.IsNullOrEmpty(value));
Contract.Requires<ArgumentNullException>(containingMessage != null, "containingMessage");
+ this.ContainingMessage = containingMessage;
byte[] encoded = Convert.FromBase64String(value);
if (this.encrypted) {