Microsoft
70-513 · Question #336
You have a task to create a WCF service 4.0 by using Microsoft .NET Framework 4.0. The WCF service will be hosted in a managed console application of the Framework. The WCF 4.0 service endpoint has…
The correct answer is C. Call a constructor of the ServiceHost class. See the full explanation below for the reasoning.
Question
You have a task to create a WCF service 4.0 by using Microsoft .NET Framework 4.0. The WCF service will be hosted in a managed console application of the Framework. The WCF 4.0 service endpoint has an address that is comparative to the base address of the WCF service. You are required to programmatically add and manage the base address to the WCF service. What should you do to accomplish the task?
Options
- ACreate and add a custom endpoint behavior to the service.
- BAdd the IEndpointBehavior object to the Service.Endpoint.Behaviors property.
- CCall a constructor of the ServiceHost class.
- DConfigure the behavior using an application configuration file.
How the community answered
(42 responses)- A17% (7)
- B2% (1)
- C71% (30)
- D10% (4)
Community Discussion
No community discussion yet for this question.