diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-15 17:07:03 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-15 17:07:03 -0700 |
commit | ef1c63fc17bd5ae7eda4444ded592574d437d309 (patch) | |
tree | f9101be9ffc1bffe79221097e3e1e4600128b9c2 /samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeRequest.cs | |
parent | 217ac4c345ff523715c638f2869ac5cb1b4eb195 (diff) | |
parent | c925ab3d2c5697c9f5f6e57aa58a042f49cf8ecd (diff) | |
download | DotNetOpenAuth-ef1c63fc17bd5ae7eda4444ded592574d437d309.zip DotNetOpenAuth-ef1c63fc17bd5ae7eda4444ded592574d437d309.tar.gz DotNetOpenAuth-ef1c63fc17bd5ae7eda4444ded592574d437d309.tar.bz2 |
Merge branch 'v3.0'
Diffstat (limited to 'samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeRequest.cs')
-rw-r--r-- | samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeRequest.cs | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeRequest.cs b/samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeRequest.cs new file mode 100644 index 0000000..19a3a0e --- /dev/null +++ b/samples/DotNetOpenAuth.ApplicationBlock/CustomExtensions/AcmeRequest.cs @@ -0,0 +1,44 @@ +//----------------------------------------------------------------------- +// <copyright file="AcmeRequest.cs" company="Andrew Arnott"> +// Copyright (c) Andrew Arnott. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace DotNetOpenAuth.ApplicationBlock.CustomExtensions { + using System; + using System.Collections.Generic; + using System.Linq; + using System.Text; + using DotNetOpenAuth.OpenId.Messages; + + public class AcmeRequest : IOpenIdMessageExtension { + private IDictionary<string, string> extraData = new Dictionary<string, string>(); + + #region IOpenIdMessageExtension Members + + public string TypeUri { + get { return Acme.CustomExtensionTypeUri; } + } + + public IEnumerable<string> AdditionalSupportedTypeUris { + get { return Enumerable.Empty<string>(); } + } + + #endregion + + #region IMessage Members + + public Version Version { + get { return Acme.Version; } + } + + public IDictionary<string, string> ExtraData { + get { return this.extraData; } + } + + public void EnsureValidMessage() { + } + + #endregion + } +} |