summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-12-26 18:07:32 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-12-26 18:07:32 -0800
commit002ce0e39af3b684ce6060dce60805e3333420fa (patch)
tree2c9aace23e08d17ed03a3732a5fa4a549463f811 /src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs
parent4bf6dfa05ab5ba2d7ebff157dc4a1a85dae42125 (diff)
downloadDotNetOpenAuth-002ce0e39af3b684ce6060dce60805e3333420fa.zip
DotNetOpenAuth-002ce0e39af3b684ce6060dce60805e3333420fa.tar.gz
DotNetOpenAuth-002ce0e39af3b684ce6060dce60805e3333420fa.tar.bz2
Replaces DNOA's internal Requires class with Validation NuGet package.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs')
-rw-r--r--src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs b/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs
index db131a9..3d61f66 100644
--- a/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs
+++ b/src/DotNetOpenAuth.OAuth/OAuth/ChannelElements/OAuthChannel.cs
@@ -21,6 +21,7 @@ namespace DotNetOpenAuth.OAuth.ChannelElements {
using DotNetOpenAuth.Messaging.Bindings;
using DotNetOpenAuth.Messaging.Reflection;
using DotNetOpenAuth.OAuth.Messages;
+ using Validation;
/// <summary>
/// An OAuth-specific implementation of the <see cref="Channel"/> class.
@@ -42,7 +43,7 @@ namespace DotNetOpenAuth.OAuth.ChannelElements {
Requires.NotNull(tokenManager, "tokenManager");
Requires.NotNull(securitySettings, "securitySettings");
Requires.NotNull(signingBindingElement, "signingBindingElement");
- Requires.True(signingBindingElement.SignatureCallback == null, "signingBindingElement", OAuthStrings.SigningElementAlreadyAssociatedWithChannel);
+ Requires.That(signingBindingElement.SignatureCallback == null, "signingBindingElement", OAuthStrings.SigningElementAlreadyAssociatedWithChannel);
Requires.NotNull(bindingElements, "bindingElements");
this.TokenManager = tokenManager;