} // HttpClientChannel private void SetupChannel() { if (_sinkProvider != null) { CoreChannel.AppendProviderToClientProviderChain( _sinkProvider, new HttpClientTransportSinkProvider()); } else { _sinkProvider = CreateDefaultClientProviderChain(); } // proxy might have been created by setting proxyname/port in constructor with dictionary if (_proxyObject == null) { // In this case, try to use the default proxy settings. WebProxy defaultProxy = WebProxy.GetDefaultProxy(); if (defaultProxy != null) { Uri address = defaultProxy.Address; if (address != null) { _proxyName = address.Host; _proxyPort = address.Port; } } UpdateProxy(); } } // SetupChannel()
private void SetupChannel() { if (this._sinkProvider != null) { CoreChannel.AppendProviderToClientProviderChain(this._sinkProvider, new IpcClientTransportSinkProvider(this._prop)); } else { this._sinkProvider = this.CreateDefaultClientProviderChain(); } }
} // HttpClientChannel private void SetupChannel() { if (_sinkProvider != null) { CoreChannel.AppendProviderToClientProviderChain( _sinkProvider, new HttpClientTransportSinkProvider(_timeout)); } else { _sinkProvider = CreateDefaultClientProviderChain(); } } // SetupChannel()