Exemplo n.º 1
0
 internal TcpConnectionPoolSettings(TcpConnectionPoolSettings tcp)
 {
     //_groupName = tcp._groupName;
     _idleTimeout = tcp._idleTimeout;
     //_leaseTimeout = tcp._leaseTimeout;
     _maxOutboundConnectionsPerEndpoint = tcp._maxOutboundConnectionsPerEndpoint;
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 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;
 }