private void Initialize(TcpTransportBindingElement bindingElement) { var maxOutboundConnectionsPerEndpoint = bindingElement.ConnectionPoolSettings.MaxOutboundConnectionsPerEndpoint; if (maxOutboundConnectionsPerEndpoint == ConnectionOrientedTransportDefaults.MaxOutboundConnectionsPerEndpoint) { _maxPooledConnections = ConnectionOrientedTransportDefaults.GetMaxConnections(); } else { _maxPooledConnections = maxOutboundConnectionsPerEndpoint; } _idleTimeout = bindingElement.ConnectionPoolSettings.IdleTimeout; }
protected TcpTransportBindingElement(TcpTransportBindingElement elementToBeCloned) : base(elementToBeCloned) { _listenBacklog = elementToBeCloned._listenBacklog; ConnectionPoolSettings = elementToBeCloned.ConnectionPoolSettings.Clone(); _extendedProtectionPolicy = elementToBeCloned.ExtendedProtectionPolicy; }
public ConnectionReuseHandler(TcpTransportBindingElement bindingElement) { _bindingElement = bindingElement; Initialize(_bindingElement); _connectionPoolSemaphore = new SemaphoreSlim(_maxPooledConnections); }
public TcpReplyChannelListener(TcpTransportBindingElement bindingElement, BindingContext context) : base(bindingElement, context) { replyAcceptor = new ConnectionOrientedTransportReplyChannelAcceptor(this); }
protected TcpChannelListener(TcpTransportBindingElement bindingElement, BindingContext context) : base(bindingElement, context) { }
public TcpDuplexChannelListener(TcpTransportBindingElement bindingElement, BindingContext context) : base(bindingElement, context) { duplexAcceptor = new InputQueueChannelAcceptor <IDuplexSessionChannel>(this); }
protected TcpTransportBindingElement(TcpTransportBindingElement elementToBeCloned) : base(elementToBeCloned) { listenBacklog = elementToBeCloned.listenBacklog; extendedProtectionPolicy = elementToBeCloned.ExtendedProtectionPolicy; }