nerdexam
Microsoft

70-513 · Question #174

A Windows Communication Foundation (WCF) client configuration file contains the following XML segment in the system.serviceModel element. <client> <endpoint address=" net.tcp://server/ContosoService…

The correct answer is D. Dim factory As ChannelFactory (Of Contoso. IContosoService ) =. See the full explanation below for the reasoning.

Question

A Windows Communication Foundation (WCF) client configuration file contains the following XML segment in the system.serviceModel element. <client> <endpoint address=" net.tcp://server/ContosoService " binding=" netTcpBinding " contract=" Contoso. IContoso Service " name=" netTcp " / > <endpoint address=" net.pipe://localhost/ContosoService " binding=" netNamedPipeBinding " contract=" Contoso. IContoso Service " name=" netPipe " /> </client> You need to create a channel factory that can send messages to the endpoint listening at net.pipe://localhost/ContosoService. Which code segment should you use

Options

  • ADim factory As ChannelFactory (Of Contoso. IContosoService ) =
  • BDim factory As ChannelFactory (Of Contoso. IContosoService ) =
  • CDim factory As ChannelFactory (Of Contoso. IContosoService ) =
  • DDim factory As ChannelFactory (Of Contoso. IContosoService ) =

How the community answered

(64 responses)
  • A
    16% (10)
  • B
    6% (4)
  • C
    3% (2)
  • D
    75% (48)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice