I make it a point to watch DNRTV every week. Carl Franklin the host of this excellent video cast program has a new presentation just about every week. The speakers are top notch. Last week a regular, Miguel Castro, gave a presentation on WCF. This was not your typical WCF talk with the usual demos where WCF services are created using the Visual Studio project templates. Instead, Miguel, created a complete WCF application client and host from scratch without the help of any project templates. In addition, the contract, implementation and host code were separated into individual assemblies. On the client side, a separate assembly was generated to house the proxies. The client application consumed the service by referencing this proxy assembly. This approach makes complete sense. If you are doing any work with WCF or plan to please make sure to catch this great presentation.
Miguel's presentation was done using the C# language and the code can be downloaded from the DNRTV site. I have duplicated the work in VB and if you are interested source can be download here.
Why the title you may ask? Well, Miguel's presentation first talked about the typical WCF presentation that uses the built-in Visual Studio project templates. He named the projects BadClient and BadService. He then went on to demo the 'Good' way of creating a WCF service and consuming it. Naturally, I thought of the great Sergio Leone classic. Hey, if you really want to get into the mood then drag the mouse over the poster to the left and sit back and enjoy.
Guess the movie (This one should be easy)
There are two kinds of people in the world, my friend. Those who have a rope around their neck and those who have the job of cutting.