summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Messaging/OutgoingWebResponse.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-12-26 18:07:32 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-12-26 18:07:32 -0800
commit002ce0e39af3b684ce6060dce60805e3333420fa (patch)
tree2c9aace23e08d17ed03a3732a5fa4a549463f811 /src/DotNetOpenAuth.Core/Messaging/OutgoingWebResponse.cs
parent4bf6dfa05ab5ba2d7ebff157dc4a1a85dae42125 (diff)
downloadDotNetOpenAuth-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/OutgoingWebResponse.cs')
-rw-r--r--src/DotNetOpenAuth.Core/Messaging/OutgoingWebResponse.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/OutgoingWebResponse.cs b/src/DotNetOpenAuth.Core/Messaging/OutgoingWebResponse.cs
index e1e9d53..2e99e4c 100644
--- a/src/DotNetOpenAuth.Core/Messaging/OutgoingWebResponse.cs
+++ b/src/DotNetOpenAuth.Core/Messaging/OutgoingWebResponse.cs
@@ -16,6 +16,7 @@ namespace DotNetOpenAuth.Messaging {
using System.Text;
using System.Threading;
using System.Web;
+ using Validation;
/// <summary>
/// A protocol message (request or response) that passes from this
@@ -136,7 +137,7 @@ namespace DotNetOpenAuth.Messaging {
/// </remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void Send() {
- Requires.ValidState(HttpContext.Current != null && HttpContext.Current.Request != null, MessagingStrings.HttpContextRequired);
+ RequiresEx.ValidState(HttpContext.Current != null && HttpContext.Current.Request != null, MessagingStrings.HttpContextRequired);
this.Send(HttpContext.Current);
}
@@ -178,7 +179,7 @@ namespace DotNetOpenAuth.Messaging {
/// Use the <see cref="Send()"/> method instead for web forms.
/// </remarks>
public virtual void Respond() {
- Requires.ValidState(HttpContext.Current != null && HttpContext.Current.Request != null, MessagingStrings.HttpContextRequired);
+ RequiresEx.ValidState(HttpContext.Current != null && HttpContext.Current.Request != null, MessagingStrings.HttpContextRequired);
this.Respond(HttpContext.Current);
}