C #, Windows Services: ServiceBase.Run with multiple services of the same type

I try to start several similar services using ServiceBase.Run(ServiceBase[] ), but it only starts the first one. MSDN does not explicitly deny this; Does this excerpt make them all have to be of different types? (bold - by me, not MSDN)

Call this overload in the main () function of the service executable to load an array of related services .

+5
source share
1 answer

That is the intention. The idea here is that you can have one executable file that creates "several services", and not just one type of service.

SCM, , . ( , ), ServiceBase.

, . , , .

+7

All Articles