internal TcpConnectionPoolSettings(TcpConnectionPoolSettings tcp)
 {
     this.groupName = tcp.groupName;
     this.idleTimeout = tcp.idleTimeout;
     this.leaseTimeout = tcp.leaseTimeout;
     this.maxOutboundConnectionsPerEndpoint = tcp.maxOutboundConnectionsPerEndpoint;
 }
 internal void CopyPropertiesFrom(TcpConnectionPoolSettings other)
 {
     group_name    = other.group_name;
     idle_timeout  = other.idle_timeout;
     lease_timeout = other.lease_timeout;
     max_conn      = other.max_conn;
 }
Exemplo n.º 3
0
		internal void CopyPropertiesFrom (TcpConnectionPoolSettings other)
		{
			group_name = other.group_name;
			idle_timeout = other.idle_timeout;
			lease_timeout = other.lease_timeout;
			max_conn = other.max_conn;
		}
Exemplo n.º 4
0
 internal TcpConnectionPoolSettings(TcpConnectionPoolSettings tcp)
 {
     this.groupName    = tcp.groupName;
     this.idleTimeout  = tcp.idleTimeout;
     this.leaseTimeout = tcp.leaseTimeout;
     this.maxOutboundConnectionsPerEndpoint = tcp.maxOutboundConnectionsPerEndpoint;
 }
Exemplo n.º 5
0
 internal TcpConnectionPoolSettings(TcpConnectionPoolSettings tcp)
 {
     _groupName    = tcp._groupName;
     _idleTimeout  = tcp._idleTimeout;
     _leaseTimeout = tcp._leaseTimeout;
     _maxOutboundConnectionsPerEndpoint = tcp._maxOutboundConnectionsPerEndpoint;
 }
 internal TcpConnectionPoolSettings(TcpConnectionPoolSettings tcp)
 {
     _groupName = tcp._groupName;
     _idleTimeout = tcp._idleTimeout;
     _leaseTimeout = tcp._leaseTimeout;
     _maxOutboundConnectionsPerEndpoint = tcp._maxOutboundConnectionsPerEndpoint;
 }
Exemplo n.º 7
0
 protected TcpTransportBindingElement(TcpTransportBindingElement elementToBeCloned) : base(elementToBeCloned)
 {
     this.listenBacklog            = elementToBeCloned.listenBacklog;
     this.portSharingEnabled       = elementToBeCloned.portSharingEnabled;
     this.teredoEnabled            = elementToBeCloned.teredoEnabled;
     this.connectionPoolSettings   = elementToBeCloned.connectionPoolSettings.Clone();
     this.extendedProtectionPolicy = elementToBeCloned.ExtendedProtectionPolicy;
 }
Exemplo n.º 8
0
 public TcpTransportBindingElement()
 {
     this.listenBacklog            = 10;
     this.portSharingEnabled       = false;
     this.teredoEnabled            = false;
     this.connectionPoolSettings   = new TcpConnectionPoolSettings();
     this.extendedProtectionPolicy = ChannelBindingUtility.DefaultPolicy;
 }
 public TcpTransportBindingElement()
     : base()
 {
     this.listenBacklog            = TcpTransportDefaults.GetListenBacklog();
     this.portSharingEnabled       = TcpTransportDefaults.PortSharingEnabled;
     this.teredoEnabled            = TcpTransportDefaults.TeredoEnabled;
     this.connectionPoolSettings   = new TcpConnectionPoolSettings();
     this.extendedProtectionPolicy = ChannelBindingUtility.DefaultPolicy;
 }
 internal void InitializeFrom(TcpConnectionPoolSettings settings)
 {
     if (settings == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("settings");
     }
     this.GroupName = settings.GroupName;
     this.IdleTimeout = settings.IdleTimeout;
     this.LeaseTimeout = settings.LeaseTimeout;
     this.MaxOutboundConnectionsPerEndpoint = settings.MaxOutboundConnectionsPerEndpoint;
 }
 internal void ApplyConfiguration(TcpConnectionPoolSettings settings)
 {
     if (settings == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("settings");
     }
     settings.GroupName = this.GroupName;
     settings.IdleTimeout = this.IdleTimeout;
     settings.LeaseTimeout = this.LeaseTimeout;
     settings.MaxOutboundConnectionsPerEndpoint = this.MaxOutboundConnectionsPerEndpoint;
 }
        internal void InitializeFrom(TcpConnectionPoolSettings settings)
        {
            if (null == settings)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("settings");
            }

            SetPropertyValueIfNotDefaultValue(ConfigurationStrings.GroupName, settings.GroupName);
            SetPropertyValueIfNotDefaultValue(ConfigurationStrings.IdleTimeout, settings.IdleTimeout);
            SetPropertyValueIfNotDefaultValue(ConfigurationStrings.LeaseTimeout, settings.LeaseTimeout);
            SetPropertyValueIfNotDefaultValue(ConfigurationStrings.MaxOutboundConnectionsPerEndpoint, settings.MaxOutboundConnectionsPerEndpoint);
        }
Exemplo n.º 13
0
 internal bool IsMatch(TcpConnectionPoolSettings tcp)
 {
     if (this.groupName != tcp.groupName)
     {
         return(false);
     }
     if (this.idleTimeout != tcp.idleTimeout)
     {
         return(false);
     }
     if (this.leaseTimeout != tcp.leaseTimeout)
     {
         return(false);
     }
     if (this.maxOutboundConnectionsPerEndpoint != tcp.maxOutboundConnectionsPerEndpoint)
     {
         return(false);
     }
     return(true);
 }
 internal bool IsMatch(TcpConnectionPoolSettings tcp)
 {
     if (this.groupName != tcp.groupName)
     {
         return false;
     }
     if (this.idleTimeout != tcp.idleTimeout)
     {
         return false;
     }
     if (this.leaseTimeout != tcp.leaseTimeout)
     {
         return false;
     }
     if (this.maxOutboundConnectionsPerEndpoint != tcp.maxOutboundConnectionsPerEndpoint)
     {
         return false;
     }
     return true;
 }
Exemplo n.º 15
0
 public TcpTransportBindingElement()
     : base()
 {
     _connectionPoolSettings = new TcpConnectionPoolSettings();
     _portSharingEnabled     = TcpTransportDefaults.PortSharingEnabled;
 }
 public TcpTransportBindingElement()
     : base()
 {
     ConnectionPoolSettings    = new TcpConnectionPoolSettings();
     _extendedProtectionPolicy = ChannelBindingUtility.DefaultPolicy;
 }
        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.º 18
0
 protected TcpTransportBindingElement(TcpTransportBindingElement elementToBeCloned)
     : base(elementToBeCloned)
 {
     _connectionPoolSettings = elementToBeCloned._connectionPoolSettings.Clone();
     _portSharingEnabled     = elementToBeCloned._portSharingEnabled;
 }