public void Send (IMessage msg, IMessageQueueTransaction transaction) { if (QRef == QueueReference.DEFAULT) throw new MonoMessagingException ("Path has not been specified"); if (msg.BodyStream == null) throw new ArgumentException ("Message is not serialized properly"); RabbitMQMessageQueueTransaction tx = (RabbitMQMessageQueueTransaction) transaction; tx.RunSend (SendInContext, msg); }