Abhijeet
Abhijeet

Reputation: 13856

Receive Azure topic messages into Web Job?

How do we pump out messages from service bus topic's subscription. I have been able to receive from service bus queue successfully.

 public class Functions
    {
        public static void ProcessQueueMessage([ServiceBusTrigger("mseoikeyword")] BrokeredMessage message, TextWriter log)
        {
            string strMsg;
            strMsg = message.GetBody<string>();
            log.WriteLine(strMsg);
        }
    }

Upvotes: 0

Views: 928

Answers (1)

Sean Feldman
Sean Feldman

Reputation: 25994

Using the same trigger with topic path and subscription name as per documentation.

Ensure topic and subscription exist as they will not be created by the trigger.

Upvotes: 1

Related Questions