Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Windows Service Bus read messages without deleting them

$
0
0

Hy,

is it possible to receive the messages from the service bus without deleting them?
I found the peek() function in the docs but I can't use it with the Windows Service Bus 1.0 API. I tried the following:

        //Creates a new copy of SubscriptionClient with specified name and topic path.
        SubscriptionClient subscriptionClient = messagingFactory.CreateSubscriptionClient(topicName, subscriptionName);

But there is only a receive function available which always deletes the messages. In the Service Bus Explorer there is a Option called "Peek all messages" which didn't deletes the messages. Does anybody know how he implements that?

I found a peek function in the docs but I can't use it:

http://msdn.microsoft.com/de-de/library/windowsazure/microsoft.servicebus.messaging.subscriptionclient.aspx

Best regards



Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>