iMonitor desktop application using dotnet 4.8
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
771 B

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");
}
}
}