I have a fundamental problem with my system. I implemented a WCF service that a bunch or clients are able to (un)install/start/stop.
The problem is that when I am in debug mode and stop abruptly the debugger (or if my client crashes), while the service is already installed and running, I will not be able to recompile unless the service is stopped.
What I currently do is:
- either run some code to stop the service before doing any code change + compilation (very unpractical)
go into my Windows Service settings and manually stop the service (also very unpractical)
Even worse, sometimes I cannot even stop the service at all and require to either kill it via Cmd line or simply restart my computer.
Is there a way I could get this service to be stopped when my client crashes or when stopping the debugger?
Any other approaches you may think of would also be welcome.
Maybe a better way of doing that is with a service timeout, where the client is supposed to keep on pinging the service in order to keep it alive (not too practical when step debugging though).