diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-04-19 07:09:32 -0400 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-04-19 07:09:32 -0400 |
commit | 668c50fd19dc633bd367ac8ace37df8b5f9a5881 (patch) | |
tree | 8ab71b553fa22e12aae6817b3c6fab93acdd31df /samples/OAuthServiceProvider/Code/OAuthConsumer.cs | |
parent | fef932af78eac2b775452c4a851e84a813027548 (diff) | |
download | DotNetOpenAuth-668c50fd19dc633bd367ac8ace37df8b5f9a5881.zip DotNetOpenAuth-668c50fd19dc633bd367ac8ace37df8b5f9a5881.tar.gz DotNetOpenAuth-668c50fd19dc633bd367ac8ace37df8b5f9a5881.tar.bz2 |
Updated OAuth C and SP samples to use standard WAP namespaces.
Diffstat (limited to 'samples/OAuthServiceProvider/Code/OAuthConsumer.cs')
-rw-r--r-- | samples/OAuthServiceProvider/Code/OAuthConsumer.cs | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/samples/OAuthServiceProvider/Code/OAuthConsumer.cs b/samples/OAuthServiceProvider/Code/OAuthConsumer.cs index db8f469..d7dfc06 100644 --- a/samples/OAuthServiceProvider/Code/OAuthConsumer.cs +++ b/samples/OAuthServiceProvider/Code/OAuthConsumer.cs @@ -4,38 +4,40 @@ // </copyright> //----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using DotNetOpenAuth.OAuth.ChannelElements; +namespace OAuthServiceProvider.Code { + using System; + using System.Collections.Generic; + using System.Linq; + using System.Web; + using DotNetOpenAuth.OAuth.ChannelElements; -public partial class OAuthConsumer : IConsumerDescription { - #region IConsumerDescription Members + public partial class OAuthConsumer : IConsumerDescription { + #region IConsumerDescription Members - string IConsumerDescription.Key { - get { return this.ConsumerKey; } - } + string IConsumerDescription.Key { + get { return this.ConsumerKey; } + } - string IConsumerDescription.Secret { - get { return this.ConsumerSecret; } - } + string IConsumerDescription.Secret { + get { return this.ConsumerSecret; } + } - System.Security.Cryptography.X509Certificates.X509Certificate2 IConsumerDescription.Certificate { - get { return null; } - } + System.Security.Cryptography.X509Certificates.X509Certificate2 IConsumerDescription.Certificate { + get { return null; } + } - Uri IConsumerDescription.Callback { - get { return string.IsNullOrEmpty(this.Callback) ? null : new Uri(this.Callback); } - } + Uri IConsumerDescription.Callback { + get { return string.IsNullOrEmpty(this.Callback) ? null : new Uri(this.Callback); } + } - DotNetOpenAuth.OAuth.VerificationCodeFormat IConsumerDescription.VerificationCodeFormat { - get { return this.VerificationCodeFormat; } - } + DotNetOpenAuth.OAuth.VerificationCodeFormat IConsumerDescription.VerificationCodeFormat { + get { return this.VerificationCodeFormat; } + } - int IConsumerDescription.VerificationCodeLength { - get { return this.VerificationCodeLength; } - } + int IConsumerDescription.VerificationCodeLength { + get { return this.VerificationCodeLength; } + } - #endregion -} + #endregion + } +}
\ No newline at end of file |