From aeb64d54fd855d91bb0bd8a65b8068b60ee1256a Mon Sep 17 00:00:00 2001 From: Ben Maurer Date: Sun, 12 Sep 2004 16:07:27 +0000 Subject: [PATCH] 2004-09-12 Ben Maurer * HttpContext.cs: use CallContext. It is a little bit faster. svn path=/branches/mono-1-0/mcs/; revision=33776 --- mcs/class/System.Web/System.Web/ChangeLog | 4 ++++ mcs/class/System.Web/System.Web/HttpContext.cs | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mcs/class/System.Web/System.Web/ChangeLog b/mcs/class/System.Web/System.Web/ChangeLog index dfa8ad8a6b7..4d69b6dbbce 100644 --- a/mcs/class/System.Web/System.Web/ChangeLog +++ b/mcs/class/System.Web/System.Web/ChangeLog @@ -1,3 +1,7 @@ +2004-09-12 Ben Maurer + + * HttpContext.cs: use CallContext. It is a little bit faster. + 2004-09-09 Gonzalo Paniagua Javier * HttpStaticObjectsCollection.cs: don't share static session objects diff --git a/mcs/class/System.Web/System.Web/HttpContext.cs b/mcs/class/System.Web/System.Web/HttpContext.cs index 8ffb184383e..27ca76ff8a5 100644 --- a/mcs/class/System.Web/System.Web/HttpContext.cs +++ b/mcs/class/System.Web/System.Web/HttpContext.cs @@ -38,6 +38,7 @@ using System.Web.Configuration; using System.Web.Util; using System.Web.SessionState; using System.Threading; +using System.Runtime.Remoting.Messaging; namespace System.Web { @@ -96,15 +97,14 @@ namespace System.Web } } - [MonoTODO("Context - Use System.Remoting.Messaging.CallContext instead of Thread storage")] internal static HttpContext Context { get { - return (HttpContext) Thread.GetData (Thread.GetNamedDataSlot ("Context")); + return (HttpContext) CallContext.GetData ("Context"); } set { - Thread.SetData (Thread.GetNamedDataSlot ("Context"), value); + CallContext.SetData ("Context", value); } } -- 2.11.4.GIT