Genericizing the GenericProxy<T>
I gleefully lifted that piece of code for use in my emerging WCF project, but needed it a bit more generic than that. Seeing as I currently have no need for any fine-tuned configuration, I can get by with a GenericProxy that explicitly gets the Binding and EndpointAddress of the service in question. Since the ClientBase
public GenericProxy(Binding binding, EndpointAddress address)
: base(binding, address)
{ }
Which now allows me to instantiate my proxy like this:
EndpointAddress address = new EndpointAddress(serviceUri);
Binding binding = new NetTcpBinding();
GenericProxy