internal ConnectionOrientedTransportBindingElement() : base() { connectionBufferSize = ConnectionOrientedTransportDefaults.ConnectionBufferSize; hostNameComparisonMode = ConnectionOrientedTransportDefaults.HostNameComparisonMode; channelInitializationTimeout = ConnectionOrientedTransportDefaults.ChannelInitializationTimeout; maxBufferSize = TransportDefaults.MaxBufferSize; maxPendingConnections = ConnectionOrientedTransportDefaults.GetMaxPendingConnections(); maxOutputDelay = ConnectionOrientedTransportDefaults.MaxOutputDelay; maxPendingAccepts = ConnectionOrientedTransportDefaults.GetMaxPendingAccepts(); transferMode = ConnectionOrientedTransportDefaults.TransferMode; }
private void Initialize(TcpTransportBindingElement bindingElement) { var maxOutboundConnectionsPerEndpoint = bindingElement.ConnectionPoolSettings.MaxOutboundConnectionsPerEndpoint; if (maxOutboundConnectionsPerEndpoint == ConnectionOrientedTransportDefaults.MaxOutboundConnectionsPerEndpoint) { _maxPooledConnections = ConnectionOrientedTransportDefaults.GetMaxConnections(); } else { _maxPooledConnections = maxOutboundConnectionsPerEndpoint; } _idleTimeout = bindingElement.ConnectionPoolSettings.IdleTimeout; }
internal void InitializeMaxPooledConnections() { maxPooledConnections = ConnectionOrientedTransportDefaults.GetMaxConnections(); }