summaryrefslogtreecommitdiffstats
path: root/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-04-08 16:57:43 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-04-08 16:57:43 -0700
commit06be5f37394ff4da99cc5571f58684829bbc0a98 (patch)
treec8c302a87e18169697c8e2e48842358c3d520395 /samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs
parentd9c0ee017807cc17132e9c760d274afffc9b981c (diff)
downloadDotNetOpenAuth-06be5f37394ff4da99cc5571f58684829bbc0a98.zip
DotNetOpenAuth-06be5f37394ff4da99cc5571f58684829bbc0a98.tar.gz
DotNetOpenAuth-06be5f37394ff4da99cc5571f58684829bbc0a98.tar.bz2
Rewrote the Google and Twitter consumer samples to be more presentable once configured.
Diffstat (limited to 'samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs')
-rw-r--r--samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs b/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs
index e2b2876..fede300 100644
--- a/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs
+++ b/samples/OAuthConsumer/App_Code/InMemoryTokenManager.cs
@@ -14,6 +14,10 @@ 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;
}