ChannelFactory caching behavior

April 8, 2014 at 8:53 AMalex

I've came across a few places where WCF ChannelFactory was recreated each time a new method was called. This arguably a bad practice and should be avoided. Instead, an instance of ChannelFactory should be cached and reused when a call needs to be made thus avoiding expensive reinitialization of the factory. Read on more on MSDN related to this topic:

http://msdn.microsoft.com/en-us/library/hh314046(v=vs.110).aspx

Posted in:

Tags:

Pingbacks and trackbacks (1)+

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading