PrepAway - Latest Free Exam Questions & Answers

What should you do?

You are creating a Windows Communication Foundation (WCF) service. The service endpoints change frequently.
On the service, you add a new ServiceDiscoveryBehavior to the Behaviors collection of the ServiceHost Description property.
You need to ensure that client applications can communicate with the service and discover changes to the service endpoints.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Add a new ServiceDiscoveryBehavior to the Behaviors collection in the client application.

B.
Add a new AnnouncementClient to the Behaviors collection in the client application.

C.
Use the FindCriteria class and the UdpDiscoveryEndpoint class to set up the binding in the client application.

D.
Use the DiscoveryProxy class and the EndpointDiscoveryMetadata class to set up the binding in the client application.

Explanation:
FindCriteria Class
(http://msdn.microsoft.com/en-us/library/system.servicemodel.discovery.findcriteria.aspx)

UdpDiscoveryEndpoint Class
(http://msdn.microsoft.com/en-us/library/system.servicemodel.discovery.udpdiscoveryendpoint.aspx)

Configuring Discovery in a Configuration File
(http://msdn.microsoft.com/en-us/library/dd456792.aspx)

2 Comments on “What should you do?


Leave a Reply