コード例 #1
0
        // Token: 0x060005E8 RID: 1512 RVA: 0x00016464 File Offset: 0x00014664
        public CachedChannelFactory <IDxStoreAccess> GetFactory(string nodeName = null, WcfTimeout wcfTimeout = null)
        {
            if (this.GroupConfig.Settings.IsUseHttpTransportForClientCommunication)
            {
                return(null);
            }
            CachedChannelFactory <IDxStoreAccess> cachedChannelFactory = null;
            bool flag = false;

            if (this.IsSelf(nodeName))
            {
                cachedChannelFactory = this.localChannelFactory;
                flag = true;
            }
            if (cachedChannelFactory == null)
            {
                ServiceEndpoint storeAccessEndpoint = EndpointBuilder.GetStoreAccessEndpoint(this.GroupConfig, nodeName, this.IsDefaultGroupIdentifier(this.GroupConfig.Name), false, wcfTimeout);
                cachedChannelFactory = this.GetFactoryByEndPoint(storeAccessEndpoint);
            }
            if (flag && this.localChannelFactory == null)
            {
                this.localChannelFactory = cachedChannelFactory;
            }
            return(cachedChannelFactory);
        }