protected override void Data(Channel channel, ChannelDataEventArgs e) { Assert.IsTrue(Compare(payload, e.Payload)); if (++count == 1000) { channel.Close(); } }
internal void handleData(Frame frame) { if (_dataInvoker == null) return; ChannelDataEventArgs e; e = new ChannelDataEventArgs(frame.ContentType, frame.Payload, frame.PriorityFlag); _dataInvoker(this, e); }
protected virtual void Data(Channel channel, ChannelDataEventArgs e){}