summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.AspNet/Clients/OAuth/InMemoryOAuthTokenManager.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-03-01 23:06:06 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-03-01 23:19:28 -0800
commit8b88373edc300ba26f260dc80d4ebdf1b4aca2fb (patch)
treedc3afd50446d9872a56792cd55e7873b83efa7db /src/DotNetOpenAuth.AspNet/Clients/OAuth/InMemoryOAuthTokenManager.cs
parent198bffe042a3650095b27bed29d0f8c98bc5c926 (diff)
downloadDotNetOpenAuth-8b88373edc300ba26f260dc80d4ebdf1b4aca2fb.zip
DotNetOpenAuth-8b88373edc300ba26f260dc80d4ebdf1b4aca2fb.tar.gz
DotNetOpenAuth-8b88373edc300ba26f260dc80d4ebdf1b4aca2fb.tar.bz2
Replaced manual argument validation with helper methods.
Diffstat (limited to 'src/DotNetOpenAuth.AspNet/Clients/OAuth/InMemoryOAuthTokenManager.cs')
-rw-r--r--src/DotNetOpenAuth.AspNet/Clients/OAuth/InMemoryOAuthTokenManager.cs10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/DotNetOpenAuth.AspNet/Clients/OAuth/InMemoryOAuthTokenManager.cs b/src/DotNetOpenAuth.AspNet/Clients/OAuth/InMemoryOAuthTokenManager.cs
index e8509af..b319d55 100644
--- a/src/DotNetOpenAuth.AspNet/Clients/OAuth/InMemoryOAuthTokenManager.cs
+++ b/src/DotNetOpenAuth.AspNet/Clients/OAuth/InMemoryOAuthTokenManager.cs
@@ -7,6 +7,7 @@
namespace DotNetOpenAuth.AspNet.Clients {
using System;
using System.Collections.Generic;
+ using DotNetOpenAuth.OAuth;
using DotNetOpenAuth.OAuth.ChannelElements;
using DotNetOpenAuth.OAuth.Messages;
@@ -35,13 +36,8 @@ namespace DotNetOpenAuth.AspNet.Clients {
/// The consumer secret.
/// </param>
public InMemoryOAuthTokenManager(string consumerKey, string consumerSecret) {
- if (consumerKey == null) {
- throw new ArgumentNullException("consumerKey");
- }
-
- if (consumerSecret == null) {
- throw new ArgumentNullException("consumerSecret");
- }
+ Requires.NotNull(consumerKey, "consumerKey");
+ Requires.NotNull(consumerSecret, "consumerSecret");
this.ConsumerKey = consumerKey;
this.ConsumerSecret = consumerSecret;