7-June-2010 I have been doing a lot of talking about WCF lately, and thought it would be useful to have a good working example to show anyone interested. This example makes use of NamedPipeBinding, of course this can easily be changed to any other kind of binding. The exposed services use both request/response and subscribe/publish using callbacks. The request/response service uses asynchronous calls. Unfortunately the NamedPipeBinding does not allow use of the Metadata-Exchange (mexHttpBinding) end-point to allow easy client-side discovery and client proxy code generation. In my example netNamedPipeBinding is the best to use seeing as the service is on the same machine. For more information around choosing a binding see this great blog post Here is a chart outlining selection of a binding from
Soledad Pano's blog. And here's a handy reference to all different bindings and their matching config element (I always get the casing wrong first time) http://msdn.microsoft.com/en-us/library/ms731092.aspx. Most developers I know respond best to a good extensive code example better than long drawn out talks with plenty of acronyms thrown in. This example is a basic to intermediate use of WCF. Use Instructions:
|