slotz
13 years agoNew Contributor
Using the System.Messaging.MessageQueue Object in C#Script
Hello,
Below is an example of C# that will read a private MSMQ queue
How do you code this in C#Script?
Thanks
Below is an example of C# that will read a private MSMQ queue
System.Messaging.MessageQueue queue = new
System.Messaging.MessageQueue(".\\Private$\\MyPrivateQueue");
queue.Send("Hello world");
System.Messaging.Message msg = queue.Receive();
msg.Formatter = new System.Messaging.XmlMessageFormatter(
new string[] {"System.String"});
Console.WriteLine(msg.Body);
How do you code this in C#Script?
Thanks