nerdexam
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)
  • A
    16% (6)
  • B
    5% (2)
  • C
    71% (27)
  • D
    8% (3)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice