Which code segment should you use?
A Windows Communication Foundation (WCF) client configuration file contains the following XML segment in the system.serviceModel element.

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. ChannelFactory <Contoso.IContoso> factory = new ChannelFactory <Contoso.IContoso>("Contoso.IContoso")
B. ChannelFactory <Contoso.IContoso> factory = new ChannelFactory <Contoso.IContoso>("netNamedPipeBinding")
C. ChannelFactory <Contoso.IContoso> factory = new ChannelFactory <Contoso.IContoso>("netPipe");
D. ChannelFactory <Contoso.IContoso> factory = new ChannelFactory <Contoso.IContoso>("net.pipe//localhost/ ContosoService");
Correct Answer: C
Explanation/Reference:
ChannelFactory<TChannel> Constructor
.NET Framework 4
Initializes a new instance of the ChannelFactory<TChannel> class.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list. Overload List