internal TcpConnectionPoolSettings(TcpConnectionPoolSettings tcp) { //_groupName = tcp._groupName; _idleTimeout = tcp._idleTimeout; //_leaseTimeout = tcp._leaseTimeout; _maxOutboundConnectionsPerEndpoint = tcp._maxOutboundConnectionsPerEndpoint; }
internal bool IsMatch(TcpConnectionPoolSettings tcp) { //if (_groupName != tcp._groupName) // return false; if (_idleTimeout != tcp._idleTimeout) { return(false); } //if (_leaseTimeout != tcp._leaseTimeout) // return false; if (_maxOutboundConnectionsPerEndpoint != tcp._maxOutboundConnectionsPerEndpoint) { return(false); } return(true); }
public TcpTransportBindingElement() : base() { _listenBacklog = TcpTransportDefaults.GetListenBacklog(); ConnectionPoolSettings = new TcpConnectionPoolSettings(); _extendedProtectionPolicy = ChannelBindingUtility.DefaultPolicy; }
protected TcpTransportBindingElement(TcpTransportBindingElement elementToBeCloned) : base(elementToBeCloned) { _listenBacklog = elementToBeCloned._listenBacklog; _connectionPoolSettings = elementToBeCloned._connectionPoolSettings.Clone(); _extendedProtectionPolicy = elementToBeCloned.ExtendedProtectionPolicy; }