PeterKottas / DotNetCore.WindowsService

Simple library that allows one to host dot net core application as windows services. Perfect solution to power micro-services architecture.
MIT License
568 stars 150 forks source link

Implemented OnCustomCommand #123

Closed justintoth closed 5 years ago

justintoth commented 5 years ago

This fixes #122.

PeterKottas commented 5 years ago

I must admit I haven't got a chance (or time) to test this in detail. But I assume, since you put the work into it, that you had. That's why I'll just merge, release and hope for no issues ;)

PeterKottas commented 5 years ago

Thanks!

justintoth commented 5 years ago

@PeterKottas Cool, yes I did test it. Here is an example of how to call it:

PS > dotnet ServiceName.dll action:custom-command command:200

PeterKottas commented 5 years ago

Cool, I am not using this myself, but happy to have it here in case somebody needs to implement this behavior. Going over a few PRs. Need to fix some issues, once that's done, I'll release. Hopefully in like an hour.

PeterKottas commented 5 years ago

Ok 2.0.11 is out. Could you pls pull it down and just double check if everything works as expected? No rush

justintoth commented 5 years ago

Looks good. Thanks for releasing so quickly!