protected override void Data(Channel channel, ChannelDataEventArgs e) { Assert.IsTrue(Compare(payload, e.Payload)); if (++count == 50) { channel.Close(); } else { channel.Send(payload); } }
protected override void Open(Channel channel, ChannelEventArgs e) { channel.Send(payload); }
protected override void Open(Channel channel, ChannelEventArgs e) { for (int i = 0; i < 1000; i++) { channel.Send(payload); } }