Corey, I think that there is a misunderstanding here.
[Fact]
public void
Can_scan_messages_in_main_queue_without_seeing_messages_from_subqueue()
{
using (var tx = new TransactionScope())
{
receiver.EnqueueDirectlyTo("h",null, new MessagePayload
{
Data = Encoding.Unicode.GetBytes("1234")
});
receiver.EnqueueDirectlyTo("h", "c", new MessagePayload
{
Data = Encoding.Unicode.GetBytes("4321")
});
tx.Complete();
}
var messages = receiver.GetAllMessages("h", null);
Assert.Equal(1, messages.Length);
Assert.Equal("1234", Encoding.Unicode.GetString(messages[0].Data));
messages = receiver.GetAllMessages("h", "c");
Assert.Equal(1, messages.Length);
Assert.Equal("4321", Encoding.Unicode.GetString(messages[0].Data));
}
Sending null as the subqueue means "give me from the main queue".
On Mon, Apr 6, 2009 at 4:52 AM, Corey Kaylor <[email protected]> wrote:
> I have a "quick and dirty" viewer for the queue working. In making the
> viewer and displaying the subqueue value I noticed this value is never
> populated on a message. I added some code to return the subqueue value but
> then noticed it is only populated when you actually include a value for the
> subqueue. Below code to express what I'm trying to say.
>
> //returns all messages regardless of subqueue, but subqueue column does not
> return a value
> queueManager.GetAllMessages(queueName, null)
>
> //returns messages in the subqueue "Discarded" and subqueue column returns
> the subqueue value
> queueManager.GetAllMessages(queueName, "Discarded")
>
> Ideally for the viewer it would be nice to return all messages with the
> subqueue that they belong to populated. Any ideas?
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---