public string Battle(SearchModel m) { var messageBytes = m.AsBytes(); channel.BasicPublish( exchange: Constants.BATTLEEXCHANGE, routingKey: Constants.BATTLE, basicProperties: props, body: messageBytes); channel.BasicConsume( consumer: consumer, queue: replyQueueName, autoAck: true); return(respQueue.Take()); }