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