public void Run() { MQSeries mq = new MQSeries(this.queueName, this.replyQueueName, this.queueManagerName, this.host, this.channel, this.port); for (int i = 0; i < this.iterations; i++) { mq.PutMessageOnQueue("TEST MESSAGE"); numMsgs++; Thread.Sleep(this.putSleepTimeMillisecs); } }