summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Messaging/IChannelBindingElement.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/IChannelBindingElement.cs')
-rw-r--r--src/DotNetOpenAuth.Core/Messaging/IChannelBindingElement.cs5
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();
}