Exemple #1
0
        public void Execute(MessageModel messageModel)
        {
            Message message = new Message
            {
                Queue       = messageModel.Queue,
                BodyMessage = messageModel.BodyMessage.ToString()
            };

            _messsageQueuingService.Queue = message.Queue;
            _messsageQueuingService.Connect();
            _messsageQueuingService.SendMessage(_serializationService.ToByteArray(message.BodyMessage));
            _messsageQueuingService.Disconnect();
        }