Multiple service processes (System.ServiceProcess.ServiceBase) in one Windows Service

前端 未结 1 1630
旧巷少年郎
旧巷少年郎 2021-01-05 10:35

I\'ve got two service processes (derived from System.ServiceProcess.ServiceBase) MyService1 and MyService2.

I\'m trying to run

相关标签:
1条回答
  • 2021-01-05 11:07

    I finally found the answer here: http://www.bryancook.net/2008/04/running-multiple-net-services-within.html. A well hidden resource, thanks 'bryan'! Hopefully this helps the next developer to save time...

    The explanation there around ServicesDependedOn isn't quite matching what I see in my project though. It's not about starting them but making sure they are started. Check out https://msdn.microsoft.com/en-us/library/system.serviceprocess.servicecontroller.servicesdependedon%28v=vs.110%29.aspx as well. I don't need this because they do not depend on each other.

    0 讨论(0)
提交回复
热议问题