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
path: root/mcs
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@novell.com>2004-08-25 13:01:11 +0400
committerLluis Sanchez <lluis@novell.com>2004-08-25 13:01:11 +0400
commitc8bb4a3dd2b756e611b9d2ae95378321279ec461 (patch)
tree4421ebc3f90af8b4ed3e8d9412909bcc2cf1dc96 /mcs
parent61362ce4aabccd850aaf094fdbeb90d9d0603fff (diff)
* server/SessionCounter.asmx: Check that Context != null in the constructor.
svn path=/branches/mono-1-0/mcs/; revision=32819
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/System.Web.Services/Test/standalone/ChangeLog4
-rw-r--r--mcs/class/System.Web.Services/Test/standalone/server/SessionCounter.asmx6
2 files changed, 10 insertions, 0 deletions
diff --git a/mcs/class/System.Web.Services/Test/standalone/ChangeLog b/mcs/class/System.Web.Services/Test/standalone/ChangeLog
index 0622988e0fb..c05f9a58129 100644
--- a/mcs/class/System.Web.Services/Test/standalone/ChangeLog
+++ b/mcs/class/System.Web.Services/Test/standalone/ChangeLog
@@ -1,3 +1,7 @@
+2004-08-25 Lluis Sanchez Gual <lluis@novell.com>
+
+ * server/SessionCounter.asmx: Check that Context != null in the constructor.
+
2004-06-22 Lluis Sanchez Gual <lluis@ximian.com>
* proxies.net.xml.gz: Updated.
diff --git a/mcs/class/System.Web.Services/Test/standalone/server/SessionCounter.asmx b/mcs/class/System.Web.Services/Test/standalone/server/SessionCounter.asmx
index 640f1bdf044..50c8befc415 100644
--- a/mcs/class/System.Web.Services/Test/standalone/server/SessionCounter.asmx
+++ b/mcs/class/System.Web.Services/Test/standalone/server/SessionCounter.asmx
@@ -8,6 +8,12 @@
{
public class SessionCounter: System.Web.Services.WebService
{
+ public SessionCounter ()
+ {
+ if (Context == null)
+ throw new Exception ("Context not set in constructor");
+ }
+
[ WebMethod(EnableSession=true) ]
public void Reset()
{