summaryrefslogtreecommitdiffstats
path: root/samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-05-07 08:08:32 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-05-07 08:08:32 -0700
commitade066736acbd902a7c84b174ac38a1679d52ff0 (patch)
treee0c8894613be5587a90f1b74c4e3d76b33666d85 /samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions
parente4dd636f81f33c8987db773661bc23166932fbae (diff)
downloadDotNetOpenAuth-ade066736acbd902a7c84b174ac38a1679d52ff0.zip
DotNetOpenAuth-ade066736acbd902a7c84b174ac38a1679d52ff0.tar.gz
DotNetOpenAuth-ade066736acbd902a7c84b174ac38a1679d52ff0.tar.bz2
Added MessagePart members to custom extension sample.
Diffstat (limited to 'samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions')
-rw-r--r--samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeRequest.cs5
-rw-r--r--samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeResponse.cs5
2 files changed, 8 insertions, 2 deletions
diff --git a/samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeRequest.cs b/samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeRequest.cs
index 19a3a0e..84fdc36 100644
--- a/samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeRequest.cs
+++ b/samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeRequest.cs
@@ -8,12 +8,15 @@ namespace DotNetOpenAuth.ApplicationBlock.CustomExtensions {
using System;
using System.Collections.Generic;
using System.Linq;
- using System.Text;
+ using DotNetOpenAuth.Messaging;
using DotNetOpenAuth.OpenId.Messages;
public class AcmeRequest : IOpenIdMessageExtension {
private IDictionary<string, string> extraData = new Dictionary<string, string>();
+ [MessagePart]
+ public string FavoriteFlavor { get; set; }
+
#region IOpenIdMessageExtension Members
public string TypeUri {
diff --git a/samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeResponse.cs b/samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeResponse.cs
index 38185bd..3fae7d8 100644
--- a/samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeResponse.cs
+++ b/samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeResponse.cs
@@ -8,13 +8,16 @@ namespace DotNetOpenAuth.ApplicationBlock.CustomExtensions {
using System;
using System.Collections.Generic;
using System.Linq;
- using System.Text;
+ using DotNetOpenAuth.Messaging;
using DotNetOpenAuth.OpenId.Messages;
[Serializable]
public class AcmeResponse : IOpenIdMessageExtension {
private IDictionary<string, string> extraData = new Dictionary<string, string>();
+ [MessagePart]
+ public string FavoriteIceCream { get; set; }
+
#region IOpenIdMessageExtension Members
/// <summary>