There is a WCF service that is hosted in the console application, there is also a client created on WPF. At the client's request, you must do the following things:
- Close the server console application
- Start another server (another application)
How can this be done?
Upd While the client performs other operations the server executes the ReadLine command
ReadLinecannot close the console with your hands, andReadLinein this situation does not allow the server to finish the work immediately after launch (at this time it responds to client commands - Artemiy Borodin