What is the benefit to keep the WCF project having - WEB HOST PROJECT and Service Implementaiton project separately.
- Service contract library
- Service implementation library
- Service Host project
I understand Contract and Implementaiton to keep separate will helpful for SOC principal and allow to use into other application also if require to implement interfaces.
But,I am not understand why to keep - Service Host and Service Implmentation project separately.
I went through below link, but not understand the benefit of keeping this separate. http://www.devx.com/codemag/Article/39837 (Page 4,5)
If any one guide here then, it is helpful.
Thank You
As the article said:
Test mocking, though important, arguably applies to most things programming wise. What is more useful here however is how service separation helps to deploy said services in production, not how it helps developer-level testing. The latter is only useful for a short time period compared to the operational life of the system in production where operations staff may change how the service is hosted. Operations, from an ALM perspective, continues way after SDLC completes.
Though off topic here, one can go further and decouple service logic itself not only from the service's contract but also from anything WCF-related. As mentioned in Thomas Erl's book SOA Design Patterns -