Udostępnij za pośrednictwem


Creating Custom WCF Proxy files

I wanted to have my proxy files created using svcutil to have my custom base class instead of clientbase and , i wanted to remove all unnecessary constructors and add my own constructors etc. I had thought that it would be a manual job,

But There is a way.. Thanks to pedram's blog , i could do it in 2 hrs. Read the blog first before downloading my code..

https://blogs.msdn.com/pedram/archive/2007/08/10/customising-wcf-proxy-generation-in-visual-studio-2008.aspx

 

I have modified this to add custom constructors and remove unwanted ones .. have  a look at the attachment

CustomWCFProxyGenerator.cs