summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Messaging/Messaging/IChannelBindingElement.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.Messaging/Messaging/IChannelBindingElement.cs')
-rw-r--r--src/DotNetOpenAuth.Messaging/Messaging/IChannelBindingElement.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.Messaging/Messaging/IChannelBindingElement.cs b/src/DotNetOpenAuth.Messaging/Messaging/IChannelBindingElement.cs
index f502f17..9dac9b3 100644
--- a/src/DotNetOpenAuth.Messaging/Messaging/IChannelBindingElement.cs
+++ b/src/DotNetOpenAuth.Messaging/Messaging/IChannelBindingElement.cs
@@ -113,8 +113,8 @@ namespace DotNetOpenAuth.Messaging {
/// <see cref="MessagePartAttribute.RequiredProtection"/> properties where applicable.
/// </remarks>
MessageProtections? IChannelBindingElement.ProcessOutgoingMessage(IProtocolMessage message) {
- Contract.Requires<ArgumentNullException>(message != null);
- Contract.Requires<InvalidOperationException>(((IChannelBindingElement)this).Channel != null);
+ Requires.NotNull(message, "message");
+ Requires.ValidState(((IChannelBindingElement)this).Channel != null);
throw new NotImplementedException();
}
@@ -136,8 +136,8 @@ namespace DotNetOpenAuth.Messaging {
/// <see cref="MessagePartAttribute.RequiredProtection"/> properties where applicable.
/// </remarks>
MessageProtections? IChannelBindingElement.ProcessIncomingMessage(IProtocolMessage message) {
- Contract.Requires<ArgumentNullException>(message != null);
- Contract.Requires<InvalidOperationException>(((IChannelBindingElement)this).Channel != null);
+ Requires.NotNull(message, "message");
+ Requires.ValidState(((IChannelBindingElement)this).Channel != null);
throw new NotImplementedException();
}