Return to Snippet

Revision: 55316
at February 2, 2012 04:11 by rengber


Initial Code
//Two techniques

//1 - Create a ChannelFactory<T> which refers to an endpoint in client config.  

  ChannelFactory<IDoStuff> factory = new ChannelFactory<IDoStuff>("MyEndpoint");
  IDoStuff proxy = factory.CreateChannel(); 
  

//2 - Create everything yourself in code

  NetTcpBinding tcp = new NetTcpBinding(); 
  EndpointAddress addr = new EndpointAddress("net.tcp://localhost:8001/");
  IDoStuff proxy = ChannelFactory<IDoStuff>.CreateChannel(tcp, addr);

Initial URL


Initial Description
From page 70 or so of Juval Lowry's Programming WCF

Initial Title
Proxyless WCF Client Side

Initial Tags


Initial Language
C#