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-27 02:42:54 +0300
committerMartin Thwaites <github@my2cents.co.uk>2014-10-27 02:42:54 +0300
commitb7b94a8024dcfa46fd6575e0af3e2f28dd3da625 (patch)
treec13369ccf70e161ac9f37e8b3aec61b647e9d715 /mcs/class/System.Web.Abstractions
parentc170351fdeef3c6af64f80267333a02ad978398c (diff)
Add ClientDisconnectedToken property to HttpResponseBase and Wrapper as default None
Diffstat (limited to 'mcs/class/System.Web.Abstractions')
-rw-r--r--mcs/class/System.Web.Abstractions/System.Web/HttpResponseBase.cs5
-rw-r--r--mcs/class/System.Web.Abstractions/System.Web/HttpResponseWrapper.cs7
2 files changed, 12 insertions, 0 deletions
diff --git a/mcs/class/System.Web.Abstractions/System.Web/HttpResponseBase.cs b/mcs/class/System.Web.Abstractions/System.Web/HttpResponseBase.cs
index 0a3aa6694dd..1fda018a955 100644
--- a/mcs/class/System.Web.Abstractions/System.Web/HttpResponseBase.cs
+++ b/mcs/class/System.Web.Abstractions/System.Web/HttpResponseBase.cs
@@ -39,6 +39,7 @@ using System.Security.Permissions;
using System.Security.Principal;
using System.Text;
using System.Web.Caching;
+using System.Threading;
#if NET_4_0
using System.Web.Routing;
@@ -69,6 +70,10 @@ namespace System.Web
public virtual string Charset { get { NotImplemented (); return null; } set { NotImplemented (); } }
+#if NET_4_5
+ public virtual CancellationToken ClientDisconnectedToken { get { NotImplemented (); return CancellationToken.None; } }
+#endif
+
public virtual Encoding ContentEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
public virtual string ContentType { get { NotImplemented (); return null; } set { NotImplemented (); } }
diff --git a/mcs/class/System.Web.Abstractions/System.Web/HttpResponseWrapper.cs b/mcs/class/System.Web.Abstractions/System.Web/HttpResponseWrapper.cs
index eed3415cd1c..f4a17c349d3 100644
--- a/mcs/class/System.Web.Abstractions/System.Web/HttpResponseWrapper.cs
+++ b/mcs/class/System.Web.Abstractions/System.Web/HttpResponseWrapper.cs
@@ -39,6 +39,7 @@ using System.Security.Permissions;
using System.Security.Principal;
using System.Text;
using System.Web.Caching;
+using System.Threading;
namespace System.Web
{
@@ -82,6 +83,12 @@ namespace System.Web
set { w.Charset = value; }
}
+#if NET_4_5
+ public override CancellationToken ClientDisconnectedToken {
+ get { return CancellationToken.None; }
+ }
+#endif
+
public override Encoding ContentEncoding {
get { return w.ContentEncoding; }
set { w.ContentEncoding = value; }