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

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

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

A.
Dim factory As ChannelFactory (Of Contoso. IContosoService ) = New ChannelFactory
(Of Contoso. IContosoService )(” Contoso. IContosoService “)

B.
Dim factory As ChannelFactory (Of Contoso. IContosoService ) = New ChannelFactory
(Of Contoso. IContosoService )(” netNamedPipeBinding “)

C.
Dim factory As ChannelFactory (Of Contoso. IContosoService ) = New ChannelFactory
(Of Contoso. IContosoService )(” netPipe “)

D.
Dim factory As ChannelFactory (Of Contoso. IContosoService ) = New ChannelFactory
(Of Contoso. IContosoService )( ” net.pipe://localhost/ContosoService “)



Leave a Reply 0

Your email address will not be published. Required fields are marked *