Sending a message to a azure service bus queue in .Net Core Core using the REST API

后端 未结 3 2103
清歌不尽
清歌不尽 2021-01-22 00:41

I want to send a message to my Azure Service Bus Queue in .Net Core but the WindowsAzure.ServiceBus Package is not compatible with .Net Core.

Can anyone show me how to s

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-22 01:03

    Can anyone show me how to send a message to the queue using the REST API?

    As 4c74356b41 mentioned in his comment, we could send a message to Azure Service Bus queue via this REST API:

    POST http{s}://{serviceNamespace}.servicebus.windows.net/{queuePath|topicPath}/messages

    here is a example

    In above request, I provide a Shared Access Signature (token), to generate a Shared Access Signature (token), please refer to this article.

提交回复
热议问题