Microsoft
70-513 · Question #92
You are developing a Windows Communication Foundation (WCF) service that contains the following code segment. [ServiceContract] public interface ICustomerService { ... } public class CustomerService…
The correct answer is C. Uri serviceAddress =. 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 { ... } public class CustomerService : ICustomerService { ... } 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
- AUri serviceAddress1 =
- BUri serviceAddress1 =
- CUri serviceAddress =
- DUri serviceAddress =
How the community answered
(38 responses)- A16% (6)
- B5% (2)
- C71% (27)
- D8% (3)
Community Discussion
No community discussion yet for this question.