using System; using System.Messaging; namespace iMonitorApp.Classes { // Token: 0x02000028 RID: 40 public class MSMQ { // Token: 0x060001AB RID: 427 RVA: 0x0000D56C File Offset: 0x0000B76C public MSMQ() { string path = ".\\private$\\iMonitorQueue"; bool flag = !MessageQueue.Exists(path); MessageQueue messageQueue; if (flag) { messageQueue = MessageQueue.Create(path); } else { messageQueue = new MessageQueue(path); } DateTime now = DateTime.Now; ParseStackAlarms parseStackAlarms = new ParseStackAlarms("test"); Console.WriteLine("Message to send: " + now.ToString()); Message message = new Message(parseStackAlarms, new XmlMessageFormatter()); messageQueue.Send(parseStackAlarms, "StackAlarm"); } } }