Exemplo n.º 1
0
		public TcpClientTransport(string host, int port, int minimumPoolSize = 5, bool enableMultiplexing = true)
		{
			if (host == null) throw new ArgumentNullException("host");
			_pool = new TcpConnectionPool(new[] {new TcpRemote(host, port)});
			_minimumPoolSize = minimumPoolSize;
			_enableMultiplexing = enableMultiplexing;
		}
Exemplo n.º 2
0
 public TcpClientTransport(string host, int port, int minimumPoolSize = 5, bool enableMultiplexing = true)
 {
     if (host == null)
     {
         throw new ArgumentNullException("host");
     }
     _pool               = new TcpConnectionPool(new[] { new TcpRemote(host, port) });
     _minimumPoolSize    = minimumPoolSize;
     _enableMultiplexing = enableMultiplexing;
 }