PrepAway - Latest Free Exam Questions & Answers

You need to create a channel factory that can send messages to the endpoint listening at net.pipe://localhost/

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

PrepAway - Latest Free Exam Questions & Answers

A.
ChannelFactory < Contoso. IContosoService > factory = new ChannelFactory < Contoso.
IContosoService >(” Contoso. IContosoService “);

B.
ChannelFactory < Contoso. IContosoService > factory = new ChannelFactory < Contoso.
IContosoService >(” netNamedPipeBinding “);

C.
ChannelFactory < Contoso. IContosoService > factory = new ChannelFactory < Contoso.
IContosoService >(” netPipe “);

D.
ChannelFactory < Contoso. IContosoService > factory = new ChannelFactory < Contoso.
IContosoService >( ” net.pipe://localhost/ContosoService “);


Leave a Reply