summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2011-06-20 08:58:21 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2011-06-23 19:53:17 -0700
commit2704b0fb445ab041f4f008bef8752e2828799b85 (patch)
tree3ec119671228d1175286aaec8d6339fb5740897e /src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs
parent5902a697d07bbd9066b8440f2d93590bff080c4f (diff)
downloadDotNetOpenAuth-2704b0fb445ab041f4f008bef8752e2828799b85.zip
DotNetOpenAuth-2704b0fb445ab041f4f008bef8752e2828799b85.tar.gz
DotNetOpenAuth-2704b0fb445ab041f4f008bef8752e2828799b85.tar.bz2
Added OutgoingWebResponse.Respond method to replace its Send method, and avoid the ThreadAbortException that is no longer the recommended approach.
Fixes #40
Diffstat (limited to 'src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs')
-rw-r--r--src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs b/src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs
index 62ea871..a744053 100644
--- a/src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs
+++ b/src/DotNetOpenAuth.Test/Mocks/CoordinatingOutgoingWebResponse.cs
@@ -7,6 +7,7 @@
namespace DotNetOpenAuth.Test.Mocks {
using System;
using System.Collections.Generic;
+ using System.ComponentModel;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
@@ -28,7 +29,12 @@ namespace DotNetOpenAuth.Test.Mocks {
this.OriginalMessage = message;
}
+ [EditorBrowsable(EditorBrowsableState.Never), Obsolete("Use the Respond method instead, and prepare for execution to continue on this page beyond the call to Respond.")]
public override void Send() {
+ this.Respond();
+ }
+
+ public override void Respond() {
this.receivingChannel.PostMessage(this.OriginalMessage);
}
}