You are developing a self-hosted WCF service that returns stock market information.
The service must be discoverable by any client application.
You need to build the service host.
How should you build the host? (To answer, drag the appropriate code segments to the
correct location or locations in the answer area. Each code segment may be used once,
more than once, or not at all. You may need to drag the split bar between panes or scroll to
view content.)
Ok, but why not DiscoveryEndpoint?
Good question.
I guess that in order to satisfy this: “The service must be discoverable by any client application.”, you should use the lowest possible communication protocol (in many blogs this endpoint king is marked as Simple Service Discovery) -> Endpoint discovery by using sending discovery messages via UDP
Example: https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-programmatically-add-discoverability-to-a-wcf-service-and-client