Partager via


Windows Communication Foundation Extensibility Samples

The samples in this section demonstrate some Windows Communication Foundation (WCF) extensibility scenarios.

In This Section

  • DataContract Surrogate
    Demonstrates how processes like serialization, deserialization, schema export, and schema import can be customized using a data contract surrogate class. This sample shows how to use a surrogate in a client and server scenario where data is serialized and transmitted between a WCF client and service.
  • Operation Formatter and Operation Selector
    Demonstrates how WCF extensibility points can be used to allow message data in a different format from what WCF expects. By default, WCF formatters expect method parameters to be included under the <soap:body> element. The sample shows how to plug in a custom operation formatter that parses parameter data from an HTTP GET query string instead and invokes methods using that data.
  • Custom Service Host
    This sample demonstrates how to use a custom derivative of the ServiceHost class to alter the run-time behavior of a service. This approach provides a reusable alternative to configuring a large number of services in a common way. The sample also demonstrates how to use the ServiceHostFactory class to use a custom ServiceHost in the Internet Information Services (IIS) or Windows Process Activation Service (WAS) hosting environment.
  • Custom Message Filter
    Demonstrates how to replace the message filters that Windows Communication Foundation (WCF) uses to dispatch messages to endpoints.
  • Parameter Filter
    Demonstrates how to validate the parameters passed to a method before it is invoked.
  • Message Inspectors
    Demonstrates how to implement and configure client and service message inspectors.
  • Metadata Extensibility Samples
    The samples in this section demonstrate some Windows Communication Foundation (WCF) metadata extensibility scenarios.
  • Binding Extensibility Samples
    The samples in this section demonstrate some Windows Communication Foundation (WCF) binding extensibility scenarios.
  • Security Extensibility Samples
    The samples in this section demonstrate some Windows Communication Foundation (WCF) security extensibility scenarios.

See Also

Other Resources

Setup Instructions
Troubleshooting Tips

Footer image

Send comments about this topic to Microsoft.
© Microsoft Corporation. All rights reserved.