Behaviors in WCF are so stinking useful, and once you get past the basics of WCF they’re arguably a necessity. Microsoft has saved itself from hundreds of hours of cursing by including the ability to define custom behaviors.

So far, my favorite use of behaviors is to use them to address some cross cutting concerns that we consistently have to address in our WCF services. Specifically logging, service registration, wsdl tweaking, and error handling. Which brings us around to the IErrorHandler interface.

More…

Advertisements