public ClientTransportSink(string channelUri, ConnectionCache connectionCache)
		{
			// parameters validation
			if (channelUri == null)
				throw new ArgumentNullException("channelUri");
			if (connectionCache == null)
				throw new ArgumentNullException("connectionCache");

			_channelUri = channelUri;
			_connectionCache = connectionCache;
		}
        public ClientTransportSink(string channelUri, ConnectionCache connectionCache)
        {
            // parameters validation
            if (channelUri == null)
            {
                throw new ArgumentNullException("channelUri");
            }
            if (connectionCache == null)
            {
                throw new ArgumentNullException("connectionCache");
            }

            _channelUri      = channelUri;
            _connectionCache = connectionCache;
        }
        private CachedConnection _connections; // list

        #endregion Fields

        #region Constructors

        public HostConnections(string channelUri, ConnectionCache cache)
        {
            _cache = cache;
            _channelUri = channelUri;
        }
		private void Initialize(IDictionary properties, IClientChannelSinkProvider sinkProvider)
		{
			if (properties != null)
			{
				// read property values
				foreach (DictionaryEntry property in properties)
				{
					switch ((string)property.Key)
					{
						case "name": _channelName = Convert.ToString(property.Value); break;
						case "priority": _channelPriority = Convert.ToInt32(property.Value); break;
						case "cachedConnections": _cachedConnections = Convert.ToInt32(property.Value); break;
					}
				}
			}

			// create the chain of the sink providers that will process all messages
			_sinkProvider = ChannelHelper.ClientChannelCreateSinkProviderChain(
				sinkProvider, new TcpClientTransportSinkProvider());

			//  create connection cache
			_connectionCache = new ConnectionCache(_cachedConnections, new ConnectionFactory(CreateConnection));
		}
        private CachedConnection _connections;          // list

        #region Constructors

        public HostConnections(string channelUri, ConnectionCache cache)
        {
            _cache      = cache;
            _channelUri = channelUri;
        }