summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Messaging/Messaging/IncomingWebResponse.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2011-09-17 17:19:26 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2011-09-17 17:19:26 -0700
commitbab1c76d35421a3d2a1608e6f3e66d67b4fbdb09 (patch)
treecc27e38eb52d26bb2a977b2d0335f0f04a23c746 /src/DotNetOpenAuth.Messaging/Messaging/IncomingWebResponse.cs
parent344c333ecd76785a77b8a1a56e1bc360ae159d04 (diff)
downloadDotNetOpenAuth-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/IncomingWebResponse.cs')
-rw-r--r--src/DotNetOpenAuth.Messaging/Messaging/IncomingWebResponse.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.Messaging/Messaging/IncomingWebResponse.cs b/src/DotNetOpenAuth.Messaging/Messaging/IncomingWebResponse.cs
index 70b1032..90d2f1f 100644
--- a/src/DotNetOpenAuth.Messaging/Messaging/IncomingWebResponse.cs
+++ b/src/DotNetOpenAuth.Messaging/Messaging/IncomingWebResponse.cs
@@ -39,8 +39,8 @@ namespace DotNetOpenAuth.Messaging {
/// <param name="requestUri">The original request URI.</param>
/// <param name="response">The response to initialize from. The network stream is used by this class directly.</param>
protected IncomingWebResponse(Uri requestUri, HttpWebResponse response) {
- Contract.Requires<ArgumentNullException>(requestUri != null);
- Contract.Requires<ArgumentNullException>(response != null);
+ Requires.NotNull(requestUri, "requestUri");
+ Requires.NotNull(response, "response");
this.RequestUri = requestUri;
if (!string.IsNullOrEmpty(response.ContentType)) {
@@ -66,7 +66,7 @@ namespace DotNetOpenAuth.Messaging {
/// <param name="contentType">Type of the content.</param>
/// <param name="contentEncoding">The content encoding.</param>
protected IncomingWebResponse(Uri requestUri, Uri responseUri, WebHeaderCollection headers, HttpStatusCode statusCode, string contentType, string contentEncoding) {
- Contract.Requires<ArgumentNullException>(requestUri != null);
+ Requires.NotNull(requestUri, "requestUri");
this.RequestUri = requestUri;
this.Status = statusCode;