private static byte[] CreateResponse(RabbitResponse data)
 {
     return(Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(data)));
 }
 private static void PublishAndAcknowledge(IModel channel, IBasicProperties basicProperties, IBasicProperties properties, RabbitResponse data, BasicDeliverEventArgs eventArgs)
 {
     if (data != null)
     {
         channel.BasicPublish(string.Empty, basicProperties.ReplyTo, properties, CreateResponse(data));
     }
     channel.BasicAck(eventArgs.DeliveryTag, false);
 }