Is there a bug in RhinoQueues that calling Peek() causes the count to
decrement? I am working with the QueueManager and calling
Peek(queueName) to see if there is another item to process and then
calling GetNumberOfMessages(queueName) to see what my count is. I
would think calling Peek() would not change the GetNumberOfMessages()
result. Am I doing something wrong? Here is part of unit test to
reproduce

using (var tx = new TransactionScope())
            {
                receiver.EnqueueDirectlyTo("h", null, new
MessagePayload
                {
                    Data = new byte[] {1, 2, 4, 5}
                });
                tx.Complete();
            }
            var count = receiver.GetNumberOfMessages("h");
            Assert.AreEqual(1, count);
            var msg = receiver.Peek("h");
            Assert.AreEqual(new byte[] { 1, 2, 4, 5 }, msg.Data);
            count = receiver.GetNumberOfMessages("h");
            Assert.AreEqual(1, count); //THIS FAILS with zero

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to