Beispiel #1
0
        static void Main(string[] args)
        {
            QueueParams param = new QueueParams(ConfigurationManager.AppSettings.Get("RabbitMQServerIP"), "Xml-Queue");
            QueueObj    Qobj  = QueueObj.GetQueueObj(param);

            Qobj.ConsumeMessages <string>(SomeMethods.MessageProcces, true);
        }
Beispiel #2
0
 public void PublishGroupOfMessage()
 {
     Qobj.channel.QueuePurge("Test-Queue");
     string[] messages = { "Hello", "World!", "This", "is", "the", "test" };
     Qobj.PublishGroupOfMessages(messages);
     Qobj.ConsumeMessages <string>(SomeMethod, false);
     Qobj.channel.Close();
     Assert.AreEqual(messages.Count(), count);
 }