I'm working on an integration testing project in .NET. The testing framework executable starts a service and then needs to wait for the service to complete an operation.
What is the best approach for the exe to wait on the service to complete its task (the service itself will not exit upon task completion)?
Both processes have access to the same database, so my first thought was a simple table that records the service's status. Once it's signaled that it's done, the exe can stop waiting and complete its task. Other approaches?
Let me reiterate that the service, once it has completed its task, will remain in a running/in-memory state, so waiting for it to exit won't work. ;-)
Also, this is purely for integration testing purposes, and will never go into production, so "simple" is the operative word.