* server/SessionCounter.asmx: Check that Context != null in the constructor.
authorLluis Sanchez <lluis@novell.com>
Wed, 25 Aug 2004 08:54:35 +0000 (08:54 -0000)
committerLluis Sanchez <lluis@novell.com>
Wed, 25 Aug 2004 08:54:35 +0000 (08:54 -0000)
svn path=/trunk/mcs/; revision=32816

mcs/class/System.Web.Services/Test/standalone/ChangeLog
mcs/class/System.Web.Services/Test/standalone/server/SessionCounter.asmx

index 902d690854c0e510ada132a76ca41b09bb6c0a51..62f734d407de92b3313db8367adad2661e9a8cf1 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-25  Lluis Sanchez Gual <lluis@novell.com>
+
+       * server/SessionCounter.asmx: Check that Context != null in the constructor.
+
 2004-07-01  Lluis Sanchez Gual  <lluis@ximian.com>
 
        * Conv.asmx.template, Conv.cs.template, client/localhost/ConvDoc*,
index 640f1bdf044e44b7db4390c1b1ff0ce1d576784d..50c8befc4155b696576b40d1743f0676964ab0c3 100644 (file)
@@ -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()
          {