ServiceBase.Run Method (ServiceBase)
Registers the executable for multiple services with the Service Control Manager (SCM).
Assembly: System.ServiceProcess (in System.ServiceProcess.dll)
You did not supply a service to start. The array might be null or empty.
Call this overload in the main() function of the service executable to register the services with the Service Control Manager. After you call , the Service Control Manager issues Start commands, which result in calls to the OnStart methods in the services. The services are not started until the Start commands are executed.
The Application.Run method for Windows Forms applications.method is called in much the same way as the
If AutoLog is true, an entry is written to the event log if any service in the array fails to start.
Available since 1.1