Microsoft
70-513 · Question #223
You are developing a Windows Communication Foundation (WCF) service that contains the following code segment. <ServiceContract()> Public Interface ICustomerService ... End Interface Public Class…
The correct answer is D. Dim serviceAddress As Uri =. See the full explanation below for the reasoning.
Question
You are developing a Windows Communication Foundation (WCF) service that contains the following code segment. <ServiceContract()> Public Interface ICustomerService ... End Interface Public Class CustomerService Implements ICustomerService ... End Class The service is self-hosted in a console application. You need to ensure that any client application can access the service at either address. Which code segment should you use?
Options
- ADim serviceAddress1 As Uri =
- BDim serviceAddress1 As Uri =
- CDim serviceAddress As Uri =
- DDim serviceAddress As Uri =
How the community answered
(42 responses)- A5% (2)
- B2% (1)
- C10% (4)
- D83% (35)
Community Discussion
No community discussion yet for this question.