private SimpleChannel CreateUpperLayer(TcpLayer tcpLayer) { var channel = new SimpleChannel(); channel.LowerLayer = tcpLayer; channel.RequestEnded += new EventHandler(RequestEnded); return(channel); }
private SimpleChannel CreateUpperLayer(TcpLayer tcpLayer) { var channel = new SimpleChannel(); channel.LowerLayer = tcpLayer; channel.RequestEnded += new EventHandler(RequestEnded); return channel; }
public SimpleChannelStack(TcpLayer tcpLayer) { _tcpLayer = tcpLayer; SimpleChannel channel = new SimpleChannel(); channel.LowerLayer = tcpLayer; tcpLayer.UpperLayer = channel; channel.RequestEnded += new EventHandler(channel_RequestEnded); }