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.

WCF behaviors are types that define how a WCF service behaves. A custom behavior can be applied to a WCF service to modify the default behavior and add custom extensions, to inspect and validate service configuration, or modify runtime behavior of the service.

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 ...

Get WCF Multi-layer Services Development with Entity Framework Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.