* server/SessionCounter.asmx: Check that Context != null in the constructor.
authorLluis Sanchez <lluis@novell.com>
Wed, 25 Aug 2004 09:01:11 +0000 (09:01 -0000)
committerLluis Sanchez <lluis@novell.com>
Wed, 25 Aug 2004 09:01:11 +0000 (09:01 -0000)
svn path=/branches/mono-1-0/mcs/; revision=32819

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

index 0622988e0fba4d3f282dd7389607b4e8c7740ab8..c05f9a58129737af0c2d2f90bc69ae42696f11d0 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-06-22  Lluis Sanchez Gual  <lluis@ximian.com>
 
        * proxies.net.xml.gz: Updated.
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()
          {