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:

Posted in:


Pingbacks and trackbacks (1)+

Add comment

  Country flag

  • Comment
  • Preview