Example #1
0
        public ChannelFactory <IDxStoreInstance> GetChannelFactory(string nodeName)
        {
            ServiceEndpoint key = this.nodeEndPoints.Map(nodeName);

            WCF.CachedChannelFactory <IDxStoreInstance> orAdd = this.factoryByEndPoint.GetOrAdd(key, delegate(ServiceEndpoint e)
            {
                WCF.Initialize(e);
                return(new WCF.CachedChannelFactory <IDxStoreInstance>(e));
            });
            return(orAdd.Factory);
        }