diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-10 21:19:09 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-10 21:19:09 -0700 |
commit | 5cb3aa5dda4d090400e6561c6ec64999ed5fca4c (patch) | |
tree | 0cf5633163de5d2f4e61c4e4a1c1d3783f234e5f /samples/OAuthConsumer/App_Code | |
parent | 8254a5ca1ced42181eb33e1282cfab5e429b0243 (diff) | |
parent | 3588b38fff5216468485d75642f91d283208c5c8 (diff) | |
download | DotNetOpenAuth-5cb3aa5dda4d090400e6561c6ec64999ed5fca4c.zip DotNetOpenAuth-5cb3aa5dda4d090400e6561c6ec64999ed5fca4c.tar.gz DotNetOpenAuth-5cb3aa5dda4d090400e6561c6ec64999ed5fca4c.tar.bz2 |
Merge commit 'v3.0'
Diffstat (limited to 'samples/OAuthConsumer/App_Code')
-rw-r--r-- | samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs b/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs index f36a396..fede300 100644 --- a/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs +++ b/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs @@ -10,10 +10,14 @@ using System.Diagnostics; using DotNetOpenAuth.OAuth.ChannelElements; using DotNetOpenAuth.OAuth.Messages; -public class InMemoryTokenManager : ITokenManager { +public class InMemoryTokenManager : IConsumerTokenManager { private Dictionary<string, string> tokensAndSecrets = new Dictionary<string, string>(); public InMemoryTokenManager(string consumerKey, string consumerSecret) { + if (String.IsNullOrEmpty(consumerKey)) { + throw new ArgumentNullException("consumerKey"); + } + this.ConsumerKey = consumerKey; this.ConsumerSecret = consumerSecret; } |