diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-03-01 23:06:06 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-03-01 23:19:28 -0800 |
commit | 8b88373edc300ba26f260dc80d4ebdf1b4aca2fb (patch) | |
tree | dc3afd50446d9872a56792cd55e7873b83efa7db /src/DotNetOpenAuth.AspNet/Clients/OAuth/InMemoryOAuthTokenManager.cs | |
parent | 198bffe042a3650095b27bed29d0f8c98bc5c926 (diff) | |
download | DotNetOpenAuth-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.cs | 10 |
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; |