70-513 · Question #55
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 C. ChannelFactory<Contoso.IContoso> factory =. 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.IContosoService" name="netTcp"/> <endpoint address="net.pipe://localhost/ContosoService" binding="netNamedPipeBinding" contract="Contoso.IContosoService" 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
- AChannelFactory<Contoso.IContoso> factory =
- BChannelFactory<Contoso.IContoso> factory =
- CChannelFactory<Contoso.IContoso> factory =
- DChannelFactory<Contoso.IContoso> factory =
How the community answered
(57 responses)- A4% (2)
- B5% (3)
- C77% (44)
- D14% (8)
Community Discussion
No community discussion yet for this question.