Exemplo n.º 1
0
 private SimpleChannel CreateUpperLayer(TcpLayer tcpLayer)
 {
     var channel = new SimpleChannel();
     channel.LowerLayer = tcpLayer;
     channel.RequestEnded += new EventHandler(RequestEnded);
     return channel;
 }
Exemplo n.º 2
0
            public SimpleChannelStack(TcpLayer tcpLayer)
            {
                _tcpLayer = tcpLayer;

                SimpleChannel channel = new SimpleChannel();
                channel.LowerLayer = tcpLayer;
                tcpLayer.UpperLayer = channel;

                channel.RequestEnded += new EventHandler(channel_RequestEnded);
            }