Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Thwaites <github@my2cents.co.uk>2014-10-19 01:31:14 +0400
committerMartin Thwaites <github@my2cents.co.uk>2014-10-19 01:31:14 +0400
commit7eeb7f14f3f6d2adb99d74ec38f810bf03d39983 (patch)
tree6765f86d21b24147b55b830af3ba4754aaea2974 /mcs/class/System.Web.Abstractions
parent3b484c1fcba73ea3285d43b7729a056d140c8c87 (diff)
Implement Request.Abort()
Diffstat (limited to 'mcs/class/System.Web.Abstractions')
-rw-r--r--mcs/class/System.Web.Abstractions/System.Web/HttpRequestBase.cs6
-rw-r--r--mcs/class/System.Web.Abstractions/System.Web/HttpRequestWrapper.cs7
2 files changed, 13 insertions, 0 deletions
diff --git a/mcs/class/System.Web.Abstractions/System.Web/HttpRequestBase.cs b/mcs/class/System.Web.Abstractions/System.Web/HttpRequestBase.cs
index 3a4c58e9513..c2fd990c3d0 100644
--- a/mcs/class/System.Web.Abstractions/System.Web/HttpRequestBase.cs
+++ b/mcs/class/System.Web.Abstractions/System.Web/HttpRequestBase.cs
@@ -148,6 +148,12 @@ namespace System.Web
public virtual string [] UserLanguages { get { NotImplemented (); return null; } }
+#if NET_4_5
+ public virtual void Abort ()
+ {
+ NotImplemented();
+ }
+#endif
public virtual byte [] BinaryRead (int count)
{
diff --git a/mcs/class/System.Web.Abstractions/System.Web/HttpRequestWrapper.cs b/mcs/class/System.Web.Abstractions/System.Web/HttpRequestWrapper.cs
index 41969c6468b..dc5098a3bec 100644
--- a/mcs/class/System.Web.Abstractions/System.Web/HttpRequestWrapper.cs
+++ b/mcs/class/System.Web.Abstractions/System.Web/HttpRequestWrapper.cs
@@ -232,6 +232,13 @@ namespace System.Web
get { return w.UserLanguages; }
}
+#if NET_4_5
+ public void Abort ()
+ {
+ w.WorkerRequest.CloseConnection();
+ }
+#endif
+
public override byte [] BinaryRead (int count)
{
return w.BinaryRead (count);