creating WCF ChannelFactory

Here’s a helper class that I use to handle channel factories: public class ChannelFactoryManager : IDisposable { private static Dictionary<Type, ChannelFactory> _factories = new Dictionary<Type,ChannelFactory>(); private static readonly object _syncRoot = new object(); public virtual T CreateChannel<T>() where T : class { return CreateChannel<T>(“*”, null); } public virtual T CreateChannel<T>(string endpointConfigurationName) where T : class … Read more