private static void AmqpMessages(string deviceId) { // for AMQP var clsamqpClient = new AmqpClient(); clsamqpClient.SendEvent(deviceId); var receiverThread = new Thread(clsamqpClient.ReceiveCommand); receiverThread.Start(); }