I am doing a windows service that must have network connectivity when it starts. Code is in c# and I set the service dependent from others with
serviceInstaller.ServicesDependedOn = new string[] { "Tcpip" };
I can see dependency correctly entered on windows service manager, but after reboot my service fails to start because it can't connect to network, after host gets an IP the service starts correctly.
I tried with "Tcpip" and "Dhcp" services. Which service should it depend on?
service needs network connectivity since its purpose is to mount a unit through ssh
thanks!