O'Reilly logo

Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications by Steven Cheng

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generic operation error handling with OperationInvoker

WCF provides a built-in interface called IErrorHandler for handling exceptions occurring within the WCF service operations processing pipeline. By using the IErrorHandler interface, you can capture those unhandled exceptions during service operation execution and return a customized FaultException object to the client.

However, if you feel IErrorHandler is not flexible or powerful enough, you can consider creating your own generic error-handling component, which can handle the exceptions occurring during the execution of certain WCF operations at the server side. In this recipe, we will demonstrate how to use the IOperationInvoker extension point to implement a custom operation error-handling ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required