diff options
author | Lluis Sanchez <lluis@novell.com> | 2004-08-25 13:00:20 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2004-08-25 13:00:20 +0400 |
commit | 1dbe1ea35fc081aae78315ac9c49c3cf0dce99b8 (patch) | |
tree | a857f260a88ca2bf2cb4b45b0b43ca79cbde5c89 /mcs | |
parent | 49d75e482aebc9d3b97484fd4ca9fa577148a5d2 (diff) |
* WebService.cs: Get the HttpContext from the HttpContext.Current, do not
wait to be set with SetContext. In this way the context is available
in the web service constructor.
svn path=/branches/mono-1-0/mcs/; revision=32817
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/System.Web.Services/System.Web.Services/ChangeLog | 6 | ||||
-rw-r--r-- | mcs/class/System.Web.Services/System.Web.Services/WebService.cs | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/mcs/class/System.Web.Services/System.Web.Services/ChangeLog b/mcs/class/System.Web.Services/System.Web.Services/ChangeLog index 5bf15ba35e5..019a79b25a1 100644 --- a/mcs/class/System.Web.Services/System.Web.Services/ChangeLog +++ b/mcs/class/System.Web.Services/System.Web.Services/ChangeLog @@ -1,3 +1,9 @@ +2004-08-25 Lluis Sanchez Gual <lluis@novell.com> + + * WebService.cs: Get the HttpContext from the HttpContext.Current, do not + wait to be set with SetContext. In this way the context is available + in the web service constructor. + 2004-05-12 Lluis Sanchez Gual <lluis@ximian.com> * WebService.cs: Take the session from the context. diff --git a/mcs/class/System.Web.Services/System.Web.Services/WebService.cs b/mcs/class/System.Web.Services/System.Web.Services/WebService.cs index e6d0db150d1..b6fc1313056 100644 --- a/mcs/class/System.Web.Services/System.Web.Services/WebService.cs +++ b/mcs/class/System.Web.Services/System.Web.Services/WebService.cs @@ -46,17 +46,13 @@ namespace System.Web.Services { public WebService ()
{
+ _context = HttpContext.Current;
}
#endregion // Constructors
#region Properties
- internal void SetContext (HttpContext context)
- {
- _context = context;
- }
-
[Browsable (false)]
[Description ("The ASP.NET application object for the current request.")]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
|