Beispiel #1
0
        private void SetServerPipeline(IChannel channel)
        {
            SetInitialChannelPipeline(channel);
            var pipeline = channel.Pipeline;

            if (InternalTransport == TransportType.Tcp)
            {
                var handler = new TcpServerHandler(this, Logging.GetLogger(System, typeof(TcpServerHandler)),
                                                   AssociationListenerPromise.Task);
                pipeline.AddLast("serverHandler", handler);
            }
        }
Beispiel #2
0
 private void SetServerPipeline(IChannel channel)
 {
     SetInitialChannelPipeline(channel);
     var pipeline = channel.Pipeline;
     if (InternalTransport == TransportType.Tcp)
     {
         var handler = new TcpServerHandler(this, Logging.GetLogger(System, typeof(TcpServerHandler)),
             AssociationListenerPromise.Task);
         pipeline.AddLast("serverHandler", handler);
     }
 }