Add ClientDisconnectedToken property to HttpResponseBase and Wrapper as default None
authorMartin Thwaites <github@my2cents.co.uk>
Sun, 26 Oct 2014 23:42:54 +0000 (23:42 +0000)
committerMartin Thwaites <github@my2cents.co.uk>
Sun, 26 Oct 2014 23:42:54 +0000 (23:42 +0000)
mcs/class/System.Web.Abstractions/System.Web/HttpResponseBase.cs
mcs/class/System.Web.Abstractions/System.Web/HttpResponseWrapper.cs

index 0a3aa6694dd392a73ce18b7fa3b90133822cc49b..1fda018a955099510574a9af6e3dea33433a9527 100644 (file)
@@ -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 (); } }
index eed3415cd1c1319b711c9a4e8bdadc7e5d7a09c4..f4a17c349d3af85ff2d8b8200e3c4a60bd7f664a 100644 (file)
@@ -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; }