Hi Adam,

In the .NET Binding there is nothing like that directly. However, its pretty
easy to do. Create a connection to the broker. Then create a receiver that
gets to the queue you want by specifying the queue's address. Finally Fetch() a
message from that queue. From the examples the code looks like:

    Receiver receiver = session.CreateReceiver(address); 
    Message message = new Message();
    message = receiver.Fetch(DurationConstants.SECOND * 1);

You could create a Duration with a value of zero to make Fetch return
right away if no message is present.

-Chuck

----- "Adam Kaminiecki" <[email protected]> wrote:

> From: "Adam Kaminiecki" <[email protected]>
> To: [email protected]
> Sent: Thursday, December 16, 2010 4:55:49 AM GMT -05:00 US/Canada Eastern
> Subject: C# client question
>
> Hi,
> 
> Is any method in C# client to ask server for message from queue 
> something like SingleGet?
> 
> For example
> 
> im using method "singleGet" with parameters (queueName) and server 
> return one message or null if queue is empty
> 
> Is something like that in C# client??
> 
> 
> 
> Regards,
> Adam
> 
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> 
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:[email protected]

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to