Ejemplo n.º 1
0
        protected override void Data(Channel channel, ChannelDataEventArgs e)
        {
			Assert.IsTrue(Compare(payload, e.Payload));
            if (++count == 1000) {
                channel.Close();
            }
        }
Ejemplo n.º 2
0
        internal void handleData(Frame frame)
        {
            if (_dataInvoker == null)
                return;

            ChannelDataEventArgs e;
            e = new ChannelDataEventArgs(frame.ContentType,
                                         frame.Payload,
                                         frame.PriorityFlag);
            _dataInvoker(this, e);
        }
Ejemplo n.º 3
0
 protected virtual void Data(Channel channel, ChannelDataEventArgs e){}