Do Svcutil generated proxies give better performance over ChannelFactory used at runtime? Does ChannelFactory cache proxy by default?
I am using .NET 4 with a service which has more than 100 operations and more than 500 data contracts participating in it.
When I use ChannelFactory<T>
, it takes a really long time to return me the proxy. Can one suggest which is the best way to create a proxy?
My code looks like this:
EndpointAddress endPoint = new EndpointAddress(url);
// My own API which gives the custom binding I create programatically
CustomBinding binding = BindingFactory.GetCustomBinding("WSECustomBinding");
ChannelFactory<T> factory = new ChannelFactory<T>(binding, endPoint);