I am working on a .NET integration project. The test environment executable starts the service, and then must wait for the operation to complete.
What is the best approach for exe to wait for the service to complete its task (the service itself will not exit after the task is completed)?
Both processes have access to the same database, so my first thought was a simple table that records the status of a service. As soon as he signals that this is done, exe can stop waiting and complete his task. Other approaches?
Let me repeat that the service, having completed its task, will remain operational / in memory, so waiting for it to exit will not work .; -)
In addition, it is purely for integration testing purposes and will never go into production, so βsimpleβ is the operational word.
source
share