Releases: PeterKottas/DotNetCore.WindowsService
Stop from service and various other improvements
Hello all, it's been a while, sorry for the delay. I've been busy starting a new company recently but I figured you waited for a few features for too long so I've scraped this together today. You can now:
-
Stop the service from code. ServiceFactory get's an extra parameter of type IMicroServiceController. You can use this in whatever way you want. The obvious though would be to pass it to the instance of the service via the constructor or somehow else. Leaving that to your imagination ;)
-
I've updated the readme to reflect some recent development.
-
There's now a dot net core template available that you can use as a quick start. This is the template https://www.nuget.org/packages/PeterKottas.DotNetCore.WindowsService.Templates/1.0.1 , feel free to add new ones. Readme details the very simple way of how you can use this.
Enjoy!
Recent PRs
netcoreapp1.0
This release fixes a problem of referencing this lib from netcoreapp1.0. Now we support both netcoreapp1.0 and netcoreapp1.1
Spaces in executable path
SetName, SetDisplayName and SetDescription fix
This contains a fix for SetName, SetDisplayName and SetDescription and some readme changes.
Thanks guys @BigtimeNet @OPSnake
Delay in retry
Very simple change. As you might know, the service runner tries to reinstall if it get's an exception during installing 10 times. I've just added 500ms delay between reinstalls to make it behave more sensibly.
Running via dotnet.exe cli
This release contains 2 main features:
First is a bug fix that made it impossible to run the service via dotnet.exe cli. This is now fixed.
Second feature is retry functionality for reinstalling service. The service throws "The specified service has been marked for deletion" exception from time to time which broke the deployment. Now the runner retries in case of this exception and keeps everything from falling appart.
Keeping up with nuget package versioning which was broken
v1.0.8 resolves #2
Override for setting name, displayName and description
v1.0.7 resolves #2
Updated behavior of install to reinstall if necessary
v1.0.6 Update README.md