Author: joergr
Date: 2005-04-09 16:33:31 -0400 (Sat, 09 Apr 2005)
New Revision: 42744

Modified:
   trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ChangeLog
   trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ServiceBase.cs
Log:
2005-04-09  Joerg Rosenkranz  <[EMAIL PROTECTED]>

        * ServiceBase.cs: Cleaned up callback code.
        



Modified: trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ChangeLog
===================================================================
--- trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ChangeLog       
2005-04-09 20:03:35 UTC (rev 42743)
+++ trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ChangeLog       
2005-04-09 20:33:31 UTC (rev 42744)
@@ -1,3 +1,7 @@
+2005-04-09  Joerg Rosenkranz  <[EMAIL PROTECTED]>
+
+       * ServiceBase.cs: Cleaned up callback code.
+       
 2005-04-08  Joerg Rosenkranz  <[EMAIL PROTECTED]>
 
        * ServiceBase.cs: Introduced static callback for interoperability

Modified: 
trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ServiceBase.cs
===================================================================
--- trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ServiceBase.cs  
2005-04-09 20:03:35 UTC (rev 42743)
+++ trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ServiceBase.cs  
2005-04-09 20:33:31 UTC (rev 42744)
@@ -40,10 +40,11 @@
 {
        public class ServiceBase : System.ComponentModel.Component
        {
-               // These members are used for interoperation with mono-service
-               internal static ServiceBase [] RegisteredServices = null;
-               internal static EventHandler RunService = null;
+               internal delegate void RunServiceCallback (ServiceBase [] 
services);
                
+               // This member is used for interoperation with mono-service
+               internal static RunServiceCallback RunService = null;
+               
                public ServiceBase() { }
 
                 public const int MaxNameLength = 80;
@@ -166,10 +167,8 @@
 
                public static void Run (ServiceBase [] servicesToRun) 
                {
-                       RegisteredServices = servicesToRun;
-                       
                        if (RunService != null)
-                               RunService (null, EventArgs.Empty);
+                               RunService (servicesToRun);
                }
 
        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to