Last post Apr 11, 2014 08:49 AM by mike4u
Apr 11, 2014 08:18 AM|mou_inn|LINK
few people add service reference and call the service and few people call service without service reference rather they create proxy at their end dynamically by ChannelFactory and call the service.
many people said often there is advantage of using ChannelFactory but i got any write up for the advantages of ChannelFactory. so if anyone know all the advantage of using ChannelFactory then please share with me. thanks
var binding = new WebHttpBinding();
var factory = new ChannelFactory<IMyServiceContract>(binding, new EndpointAddress("http://url:port"));
var myService = factory.CreateChannel();
Apr 11, 2014 08:49 AM|mike4u|LINK