summaryrefslogtreecommitdiffstats
path: root/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs')
-rw-r--r--samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs6
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;
}