Author: joergr
Date: 2005-04-08 17:48:26 -0400 (Fri, 08 Apr 2005)
New Revision: 42711

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

        * ServiceBase.cs: Introduced static callback for
        interoperability with mono-service.
        



Modified: trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ChangeLog
===================================================================
--- trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ChangeLog       
2005-04-08 21:35:07 UTC (rev 42710)
+++ trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ChangeLog       
2005-04-08 21:48:26 UTC (rev 42711)
@@ -1,8 +1,13 @@
-2004-04-06  Joerg Rosenkranz  <[EMAIL PROTECTED]>
+2005-04-08  Joerg Rosenkranz  <[EMAIL PROTECTED]>
 
+       * ServiceBase.cs: Introduced static callback for interoperability
+       with mono-service.
+       
+2005-04-06  Joerg Rosenkranz  <[EMAIL PROTECTED]>
+
        * ServiceBase.cs: Fixed default values of members.
        
-2004-04-04  Joerg Rosenkranz  <[EMAIL PROTECTED]>
+2005-04-04  Joerg Rosenkranz  <[EMAIL PROTECTED]>
 
        * ServiceBase.cs: Introduced static field for interoperation with monod.
        Implemented Run methods.

Modified: 
trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ServiceBase.cs
===================================================================
--- trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ServiceBase.cs  
2005-04-08 21:35:07 UTC (rev 42710)
+++ trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ServiceBase.cs  
2005-04-08 21:48:26 UTC (rev 42711)
@@ -40,8 +40,9 @@
 {
        public class ServiceBase : System.ComponentModel.Component
        {
-               // This member is used for interoperation with monod
+               // These members are used for interoperation with mono-service
                internal static ServiceBase [] RegisteredServices = null;
+               internal static EventHandler RunService = null;
                
                public ServiceBase() { }
 
@@ -166,6 +167,9 @@
                public static void Run (ServiceBase [] servicesToRun) 
                {
                        RegisteredServices = servicesToRun;
+                       
+                       if (RunService != null)
+                               RunService (null, EventArgs.Empty);
                }
 
        }

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

Reply via email to