- Executar o CMD como Administrador.
- Executar o comando: sc.exe create NOME_DO_SERVICO binPath= "D:\Projetos\worker-service\bin\Debug\netcoreapp3.1\worker-service.exe"
- Executar o CMD como Administrador.
- sc delete NOME_DO_SERVICO
- dotnet add package Microsoft.Extensions.Hosting.WindowsServices -v 3.1.3

