O'Reilly logo

WCF 4.5 Multi-Layer Services Development with Entity Framework by Mike Liu

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

Extending a WCF service

As we have learned earlier, there are more than 30 extension points in the WCF runtime, but the most common situation is to customize the extension of a behavior. Discussion of all WCF extension points is beyond the context of this book and from this point on, we will focus only on the behavior extension.

To extend a behavior, DispatchRuntime and DispatchOperation need to be extended on the service side and ClientRuntime and ClientOperation need to be extended on the client side. This can be achieved by implementing corresponding interfaces such as IParameterInspector, IDispatchMessageInspector, and IClientMessageFormatter. These interfaces provide the necessary methods to allow parameters to be inspected, messages to be ...

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