summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OAuth
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2011-09-20 20:58:01 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2011-09-20 20:58:01 -0700
commit58401eee26ed090ecf8dd10ec255c98ae416158a (patch)
tree13acf7ee2fccc1698ec1fdccbb50594b775aa647 /src/DotNetOpenAuth.OAuth
parente16ccd8f96291b8aed65ba770490dd63a32d04e1 (diff)
downloadDotNetOpenAuth-58401eee26ed090ecf8dd10ec255c98ae416158a.zip
DotNetOpenAuth-58401eee26ed090ecf8dd10ec255c98ae416158a.tar.gz
DotNetOpenAuth-58401eee26ed090ecf8dd10ec255c98ae416158a.tar.bz2
Removed some lingering ccrewrite.exe dependent code.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth')
-rw-r--r--src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs2
-rw-r--r--src/DotNetOpenAuth.OAuth/OAuth/Protocol.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs b/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs
index a8ea026..32b57d0 100644
--- a/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs
+++ b/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs
@@ -44,7 +44,7 @@ namespace DotNetOpenAuth.OAuth.ChannelElements {
Requires.NotNull(securitySettings, "securitySettings");
Requires.NotNull(signingBindingElement, "signingBindingElement");
Requires.True(signingBindingElement.SignatureCallback == null, "signingBindingElement", OAuthStrings.SigningElementAlreadyAssociatedWithChannel);
- Contract.Requires<ArgumentNullException>(bindingElements != null, "bindingElements");
+ Requires.NotNull(bindingElements, "bindingElements");
this.TokenManager = tokenManager;
signingBindingElement.SignatureCallback = this.SignatureCallback;
diff --git a/src/DotNetOpenAuth.OAuth/OAuth/Protocol.cs b/src/DotNetOpenAuth.OAuth/OAuth/Protocol.cs
index 3b7437c..0b7aaa9 100644
--- a/src/DotNetOpenAuth.OAuth/OAuth/Protocol.cs
+++ b/src/DotNetOpenAuth.OAuth/OAuth/Protocol.cs
@@ -141,7 +141,7 @@ namespace DotNetOpenAuth.OAuth {
/// <returns>A matching <see cref="Protocol"/> instance.</returns>
internal static Protocol Lookup(Version version) {
Requires.NotNull(version, "version");
- Contract.Requires<ArgumentOutOfRangeException>(AllVersions.Any(p => p.Version == version));
+ Requires.InRange(AllVersions.Any(p => p.Version == version), "version");
return AllVersions.First(p => p.Version == version);
}
}