How should you build the host?

You are developing a self-hosted WCF service that returns stock market information. The service must be
discoverable by any client application. You need tobuild the service host. How should you build the host?

You are developing a self-hosted WCF service that returns stock market information. The service must be
discoverable by any client application. You need tobuild the service host. How should you build the host?

Answer:

Explanation:



Leave a Reply 6

Your email address will not be published. Required fields are marked *


Anon

Anon

Should be: host.AddServiceEndpoint(new UdfDiscoveryEndpoint());

https://msdn.microsoft.com/en-us/library/dd456783(v=vs.110).aspx

Stefan

Stefan

To configure the service for discovery, we need to add the standard udpDiscoveryEndpoint endpoint as well as need to enable the serviceDiscovery behavior on the service.