Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 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);
     }
 }