3
Vote

Ability to set the binding and the address without using config

description

Copied from http://www.codeproject.com/Messages/3262657/ServiceReferences-ClientConfig.aspx
 
I have the following problem.
I use dynamic silverlight dlls. So they have no ServiceReferences.ClientConfig. Your ChannelManagerSingleton uses
 
var channelFactory = new ChannelFactory<TChannel>("*")
 
to get the information from the ServiceReferences.ClientConfig.
 
I need such a thing:
 
System.ServiceModel.BasicHttpBinding bind = new System.ServiceModel.BasicHttpBinding();
bind.MaxReceivedMessageSize = 2147483647;
bind.MaxBufferSize = 2147483647;
bind.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.None;
System.ServiceModel.EndpointAddress add = new System.ServiceModel.EndpointAddress(@"http://localhost:1100/ClogService.svc"); var channelFactory = new ChannelFactory<TChannel>(bind, add);
 
I need the possibility to set the binding and the address from outside to use the ChannelFactory with that.
 
Have You an idea to make that. I can make it myself, but probably not with less changes as possible.

file attachments

comments

olivianer wrote Nov 9, 2009 at 10:53 AM

Hi, I added the functionality. You can check the source code

wrote Nov 9, 2009 at 10:53 AM

wrote Dec 21, 2009 at 3:45 AM

mbergal wrote Jan 9, 2010 at 6:37 AM

Impact = Low? I am not sure about this.

wrote Jan 9, 2010 at 6:37 AM

wrote Feb 14, 2013 at 1:06 AM