diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-12-26 18:07:32 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-12-26 18:07:32 -0800 |
commit | 002ce0e39af3b684ce6060dce60805e3333420fa (patch) | |
tree | 2c9aace23e08d17ed03a3732a5fa4a549463f811 /src/DotNetOpenAuth.Core/Messaging/IChannelBindingElement.cs | |
parent | 4bf6dfa05ab5ba2d7ebff157dc4a1a85dae42125 (diff) | |
download | DotNetOpenAuth-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.Core/Messaging/IChannelBindingElement.cs')
-rw-r--r-- | src/DotNetOpenAuth.Core/Messaging/IChannelBindingElement.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/IChannelBindingElement.cs b/src/DotNetOpenAuth.Core/Messaging/IChannelBindingElement.cs index 1047ec5..d52e1d5 100644 --- a/src/DotNetOpenAuth.Core/Messaging/IChannelBindingElement.cs +++ b/src/DotNetOpenAuth.Core/Messaging/IChannelBindingElement.cs @@ -7,6 +7,7 @@ namespace DotNetOpenAuth.Messaging { using System; using System.Diagnostics.Contracts; + using Validation; /// <summary> /// An interface that must be implemented by message transforms/validators in order @@ -114,7 +115,7 @@ namespace DotNetOpenAuth.Messaging { /// </remarks> MessageProtections? IChannelBindingElement.ProcessOutgoingMessage(IProtocolMessage message) { Requires.NotNull(message, "message"); - Requires.ValidState(((IChannelBindingElement)this).Channel != null); + Assumes.True(((IChannelBindingElement)this).Channel != null); throw new NotImplementedException(); } @@ -137,7 +138,7 @@ namespace DotNetOpenAuth.Messaging { /// </remarks> MessageProtections? IChannelBindingElement.ProcessIncomingMessage(IProtocolMessage message) { Requires.NotNull(message, "message"); - Requires.ValidState(((IChannelBindingElement)this).Channel != null); + RequiresEx.ValidState(((IChannelBindingElement)this).Channel != null); throw new NotImplementedException(); } |