Beispiel #1
0
        public void Publish <T>(string exchangeName, string exchangeRoute, T message, IIstaMessageProperties properties)
        {
            var messageProperties = MessageQueueFactory.ConvertProperties(channel, properties);
            var messagePayload    = JsonMessageSerializer.SerializeToBytes(message);

            channel.BasicPublish(exchangeName, exchangeRoute, false, false, messageProperties, messagePayload);
        }