Contents tagged with WCF

  • Why should we use Channel factory instead of proxy generation to construct communication channel between client and server in WCF?

    If we use proxy class to construct communication channel between server and client , then when we will change data contract, Service contract, callback contract we need to regenerate the proxy for client. If we use channel factory to construct the channel we do not need to change channel factory code when there is a change in data contract, service contract and callback contract. To use Channel Factory to construct channel between server and client , all the contracts must be kept in a separate DLL that must be shared by server and client. But if you do not know, who are your service clients or any third party can consume your service, then by default we have to depend on proxy generation.