'Set service startup options for .net core worker service
I am trying to create a Windows service by writing a .NET 5 worker service, and I am hung on where in my code I would set up the service as auto-start, auto-start (delayed), manual start, etc.
Can this be set in the code, or can it only be set up at the command line when installing the service, or in the Windows services GUI?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|