0
votes

Is there any way to message browse in Azure Service bus for .net core similar to .net framework's servicebus.messaging https://docs.microsoft.com/en-us/azure/service-bus-messaging/message-browsing

2

2 Answers

0
votes

Yes, you can use Service Bus Explorer. The tool does a lot.

https://github.com/paolosalvatori/ServiceBusExplorer

Documentation

https://github.com/paolosalvatori/ServiceBusExplorer/blob/develop/docs/documentation.md

EDIT

See the following samples that show you to use the API(s).

https://github.com/Azure/azure-service-bus/tree/master/samples/DotNet/Microsoft.Azure.ServiceBus

Message Browsing is probably what you are after.

Message Browsing - MessageBrowse shows how to enumerate all messages residing in a Queue or Subscription without receiving or locking them. This method also allows finding deferred and scheduled messages.

0
votes

Message browsing programmatically is identical with both clients, the .NET Framework WindowsAzure.ServiceBus () and the new .NET Standard Microsoft.Azure.ServiceBus client.

Browsing is possible in receive mode PeekLock. Using either QueueClient or SubscriptionClient you can peek messages.

Note that you can peek messages by count, i.e. how many messages to peek, but not by their status. Additionally, you can peek messages one at a time by their SequenceNumber.