public void Run() { MQSeries mq = new MQSeries(this.queueName, this.queueManagerName, this.host, this.channel, this.port); while (true) { string receivedMsg = mq.GetMessageOffQueue(); if (!receivedMsg.Equals("")) { Thread.Sleep(this.getPollingTimeMillisecs); } } }