diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2011-09-17 17:19:26 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2011-09-17 17:19:26 -0700 |
commit | bab1c76d35421a3d2a1608e6f3e66d67b4fbdb09 (patch) | |
tree | cc27e38eb52d26bb2a977b2d0335f0f04a23c746 /src/DotNetOpenAuth.Messaging/Messaging/StandardMessageFactoryChannel.cs | |
parent | 344c333ecd76785a77b8a1a56e1bc360ae159d04 (diff) | |
download | DotNetOpenAuth-bab1c76d35421a3d2a1608e6f3e66d67b4fbdb09.zip DotNetOpenAuth-bab1c76d35421a3d2a1608e6f3e66d67b4fbdb09.tar.gz DotNetOpenAuth-bab1c76d35421a3d2a1608e6f3e66d67b4fbdb09.tar.bz2 |
DotNetOpenAuth.Messaging no longer relies on ccrewrite.exe
Diffstat (limited to 'src/DotNetOpenAuth.Messaging/Messaging/StandardMessageFactoryChannel.cs')
-rw-r--r-- | src/DotNetOpenAuth.Messaging/Messaging/StandardMessageFactoryChannel.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.Messaging/Messaging/StandardMessageFactoryChannel.cs b/src/DotNetOpenAuth.Messaging/Messaging/StandardMessageFactoryChannel.cs index 1fc3608..acfc004 100644 --- a/src/DotNetOpenAuth.Messaging/Messaging/StandardMessageFactoryChannel.cs +++ b/src/DotNetOpenAuth.Messaging/Messaging/StandardMessageFactoryChannel.cs @@ -34,8 +34,8 @@ namespace DotNetOpenAuth.Messaging { /// <param name="bindingElements">The binding elements to apply to the channel.</param> protected StandardMessageFactoryChannel(ICollection<Type> messageTypes, ICollection<Version> versions, params IChannelBindingElement[] bindingElements) : base(new StandardMessageFactory(), bindingElements) { - Contract.Requires<ArgumentNullException>(messageTypes != null); - Contract.Requires<ArgumentNullException>(versions != null); + Requires.NotNull(messageTypes, "messageTypes"); + Requires.NotNull(versions, "versions"); this.messageTypes = messageTypes; this.versions = versions; @@ -93,8 +93,8 @@ namespace DotNetOpenAuth.Messaging { /// <returns>The generated/retrieved message descriptions.</returns> private static IEnumerable<MessageDescription> GetMessageDescriptions(ICollection<Type> messageTypes, ICollection<Version> versions, MessageDescriptionCollection descriptionsCache) { - Contract.Requires<ArgumentNullException>(messageTypes != null); - Contract.Requires<ArgumentNullException>(descriptionsCache != null); + Requires.NotNull(messageTypes, "messageTypes"); + Requires.NotNull(descriptionsCache, "descriptionsCache"); Contract.Ensures(Contract.Result<IEnumerable<MessageDescription>>() != null); // Get all the MessageDescription objects through the standard cache, |