private void SetClientPipeline(IChannel channel, Address remoteAddress) { SetInitialChannelPipeline(channel); var pipeline = channel.Pipeline; if (InternalTransport == TransportType.Tcp) { var handler = new TcpClientHandler(this, Logging.GetLogger(System, typeof(TcpClientHandler)), remoteAddress); pipeline.AddLast("clientHandler", handler); } }