1

How do I use Azure REST APIs to subscribe to a service bus topic? I want to create a subscription with "Enable Sessions" as the ordering of messages is very important for me. I have the below code that works now, that registers a message handler.

subscriptionClient.RegisterSessionHandler(ProcessMessagesInSessionAsync, sessionHandlerOptions);

However, I want to implement this using REST API. Is this possible?

Thomas
  • 1,970
  • 4
  • 28
  • 59
  • 1
    What do you mean by "using REST"? When using the SDK it creates an open and steady connection using AMQP (by default) to the Service Bus to get notified immediately of new messages. – silent Jul 30 '19 at 18:29
  • 1
    I 'm referring to https://learn.microsoft.com/en-us/rest/api/servicebus/service-bus-runtime-rest. I'm aware of SDK, but checking if I can retrieve messages from a session enabled Subscription using REST. – Thomas Aug 01 '19 at 02:18

0 Answers0