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?

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?

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)



Leave a Reply 2

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


Y

Y

udpDiscoveryEndPoint is used in the server side. I think it would be D