Leveraging Default Endpoints
Before support for default endpoints, if you called
Open() on the
ServiceHost object, and you had not yet specified at least one
<endpoint> element in your configuration file, the runtime would throw an exception. And you would get a similar result if you called
AddServiceEndpoint() in code to specify an endpoint. However, with the release of .NET 4.5, every WCF service is automatically provided with default endpoints that capture commonplace configuration details for each supported protocol.
If you were to open the
machine.config file for .NET 4.5, you would find a ne...
- Chapter 25: Introducing Windows Communication Foundation
- from Pro C# 5.0 and the .NET 4.5 Framework, Sixth Edition
- Publisher: Apress
- Released: August 2012
WCF Default behaviour endpoint
Share this highlighthttp://www.safaribooksonline.com/a/pro-c-50/6326/