private void Client_recievedMessage(object sender, MqttMsgPublishEventArgs e) { try { if (this.cycle == this.duration || timer_Count < duration) { if (e != null) { IncomingMessage.Enqueue(e); } } } catch (Exception ex) { LOG("ERROR : " + ex.Message); } }