Difference
between Proxy and Channel Factory in WCF
Are you frustrated in searching through Search Engines ?
- S.NoProxyChannel Factory
1 What is the prerequisite for Proxy ?Only require URL where the service resides .What is the prerequisite for Channel Factory ?We must have direct access to the assembly that contains that service contractT
for.2 In terms of complexity ?Very Simpler.In terms of complexity ?Not easier.3 In terms of understandability ?Easy to Understand.In terms of understandability ?Channels are complex, network-related.4 How to use Proxy ?There is Visual Studio gives us add the reference.How to use Channel Factory ?When we share a common service contract dll between the client and the server, we will be using the ChannelFactory class.5 When we will go for Proxy ?If we know that our entities will change much and the client code is more, then we need to go for Proxy.Proxy has following limitations,- Properties need to have gets and sets
- Constructors cannot be exposed
- Methods other than the service contract cannot be exposed
When we will go for Channel Factory ?If we know that our entities will not change much and the client code is less, then a DLL would work better than a Proxy.6 How to create Proxy ?By using SVCutil.exe we will create PRoxyHow to create Channel Factory ?When we are using DLL that refers Service contract interface then use the channel factory class
References:
Excellent article that surely helps us to improve our knowledge in dotnet.
ReplyDeleteThank you for your appreciation.
ReplyDeleteGreat Article..
ReplyDeleteWCF Online Training
WCF Training
Online WCF Training from India
WCF Training in Chennai
"Nice and good article.. it is very useful for me to learn and understand easily.. thanks for sharing your valuable information and time.. please keep updating.php jobs in hyderabad.
ReplyDelete"
The article is really easy to clarify the queries for the beginner.contents are explained very clearly.
ReplyDeleteMicrosoft Windows Azure Training in Chennai | Certification | Online Training Course | Microsoft Windows Azure Training in Bangalore | Certification | Online Training Course | Microsoft Windows Azure Training in Hyderabad | Certification | Online Training Course | Microsoft Windows Azure Training in Online | Certification | Online Training Course