I have a solution with 3 projects
- Winform Client
- WCF Service hosted in a windows service
- WCF Agent hosted in a windows service
The client (Item 1) talks to the agent (Item 3) via the service (Item 2) - all using WCF. The client (item 1) gets information from an SQL database via the service (Item 2) - using WCF.
Hence here is how I designed it. Item 1 contain a WCF client to talk to Item 2 over WCF Item 2 contains a WCF service so it can service item 1 requests. It also contains a WCF client (to talk to 3) Item 3 contains a WCF service so it can service item 2 requests.
I add a service reference to item 2 in item 1's project i add a service reference to item 3 in item 2's project
is this how it should be done give that everything is in the one solution ?
Because item 2 and item 3 are self hosted in 2 windows services, every-time i recompile my code i have to stop Item 2 and item 3 services manually in Services.MSC, compile , start Item 1 and Item 2 services and finally run my Winform client by pressing play in visual studio. Is there a better easier way of doing all this?