예제 #1
0
 public DefaultMessageContents(IMessageContents imc)
 {
     this.Id = imc.Id;
     this.MessageLabel = imc.MessageLabel;
     this.MessageBody = imc.MessageBody;
     this.TimeStamp = imc.TimeStamp;
 }
예제 #2
0
 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);
     }
 }