summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OAuth2/OAuth2/IConsumerDescription.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.OAuth2/OAuth2/IConsumerDescription.cs')
-rw-r--r--src/DotNetOpenAuth.OAuth2/OAuth2/IConsumerDescription.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.OAuth2/OAuth2/IConsumerDescription.cs b/src/DotNetOpenAuth.OAuth2/OAuth2/IConsumerDescription.cs
index 14f3523..cf07dc6 100644
--- a/src/DotNetOpenAuth.OAuth2/OAuth2/IConsumerDescription.cs
+++ b/src/DotNetOpenAuth.OAuth2/OAuth2/IConsumerDescription.cs
@@ -91,8 +91,8 @@ namespace DotNetOpenAuth.OAuth2 {
/// <c>true</c> if the callback is allowed; otherwise, <c>false</c>.
/// </returns>
bool IConsumerDescription.IsCallbackAllowed(Uri callback) {
- Contract.Requires<ArgumentNullException>(callback != null);
- Contract.Requires<ArgumentException>(callback.IsAbsoluteUri);
+ Requires.NotNull(callback, "callback");
+ Requires.True(callback.IsAbsoluteUri, "callback");
throw new NotImplementedException();
}