Difference between proxy and channel factory in wcf

1,503 views
1,391 views

Published on

This provides difference between proxy and channel factory in wcf

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,503
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Difference between proxy and channel factory in wcf

  1. 1. Difference between Proxy and Channel Factory in WCFS.No Proxy Channel Factory1 What is the prerequisite forProxy ?Only require URL where theservice resides .What is the prerequisite forChannel Factory ?We must have direct access to theassembly that contains that servicecontract T 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 usadd the reference.How to use Channel Factory ?When we share a common servicecontract dll between the client andthe server, we will be using theChannelFactory class.5 When we will go for Proxy ?If we know that our entities willchange much and the clientcode is more, then we need togo for Proxy.Proxy has following limitations,1. Properties need to havegets and sets2. Constructors cannot beexposed3. Methods other than theservice contract cannotbe exposedWhen we will go for ChannelFactory ?If we know that our entities will notchange much and the client code isless, then a DLL would work betterthan a Proxy.
  2. 2. 6 How to create Proxy ?By using SVCutil.exe we willcreate PRoxyHow to create Channel Factory ?When we are using DLL that refersService contract interface then usethe channel factory classReferences:http://www.sujitbhujbal.com/2012/03/difference-between-proxy-and-channel.htmlhttp://www.codeproject.com/Tips/558163/Difference-between-Proxy-and-Channel-Factory-in-WC

×