public DefaultMessageContents(IMessageContents imc) { this.Id = imc.Id; this.MessageLabel = imc.MessageLabel; this.MessageBody = imc.MessageBody; this.TimeStamp = imc.TimeStamp; }
public void Send(IMessageContents msg) { try { Message message = new Message(); message.Formatter = new ActiveXMessageFormatter(); message.Body = msg.MessageBody; message.Label = msg.MessageLabel; queue.Send(message, currentTransaction.Transaction); } catch(MessageQueueException mqe) { throw new MessagingException(mqe.Message); } }