Author: joergr
Date: 2005-04-04 16:23:58 -0400 (Mon, 04 Apr 2005)
New Revision: 42539

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

        * monod.c: First commit: Daemon for running services built 
        with System.ServiceProcess under Linux.



Modified: trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ChangeLog
===================================================================
--- trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ChangeLog       
2005-04-04 20:20:24 UTC (rev 42538)
+++ trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ChangeLog       
2005-04-04 20:23:58 UTC (rev 42539)
@@ -1,3 +1,8 @@
+2004-04-04  Joerg Rosenkranz  <[EMAIL PROTECTED]>
+
+       * ServiceBase.cs: Introduced static field for interoperation with monod.
+       Implemented Run methods.
+       
 2004-01-23  Geoff Norton  <[EMAIL PROTECTED]>
 
        * ServiceBase.cs: Implement missing virtuals.

Modified: 
trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ServiceBase.cs
===================================================================
--- trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ServiceBase.cs  
2005-04-04 20:20:24 UTC (rev 42538)
+++ trunk/mcs/class/System.ServiceProcess/System.ServiceProcess/ServiceBase.cs  
2005-04-04 20:23:58 UTC (rev 42539)
@@ -4,8 +4,10 @@
 // Authors:
 //      Cesar Octavio Lopez Nataren ([EMAIL PROTECTED])
 //      Duncan Mak ([EMAIL PROTECTED])
+//      Joerg Rosenkranz ([EMAIL PROTECTED])
 //
 // (C) 2003, Ximian Inc and Cesar Octavio Lopez Nataren.
+// (C) 2005, Voelcker Informatik AG
 //
 
 //
@@ -38,6 +40,9 @@
 {
        public class ServiceBase : System.ComponentModel.Component
        {
+               // This member is used for interoperation with monod
+               internal static ServiceBase [] RegisteredServices = null;
+               
                public ServiceBase() { }
 
                 public const int MaxNameLength = 80;
@@ -149,9 +154,15 @@
 
                protected virtual void OnShutdown () { }
 
-                public static void Run (ServiceBase service) { }
+        public static void Run (ServiceBase service) 
+               {
+                       Run (new ServiceBase [] {service});
+               }
 
-               public static void Run (ServiceBase [] ServicesToRun) { }
+               public static void Run (ServiceBase [] servicesToRun) 
+               {
+                       RegisteredServices = servicesToRun;
+               }
 
        }
 }

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

Reply via email to