Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Service Bus DNX Core support

UPDATE: DNX does not exist anymore. Please ignore this question.

Current WindowsAzure.ServiceBus (3.0.4) nuget package (http://nuget-preprod-0-v2gallery.cloudapp.net/packages/WindowsAzure.ServiceBus/) requires .NET Framework 4.5 Full Profile and it is not usable with an application build specifically to use DNX Core.

As I understand, the only way to build such application at this moment is to use REST API.

  1. What is the recommended way to include authentication information to requests? Do we have any open source nuget to handle it or should the SAS token creation be implemented by each developer? Links to the REST API authentication samples are broken.

  2. While the Service Bus nuget package is not open sourced, do we have any active channels to reach the developers to find out if they have any plans to support DNX Core and we should not use REST API because the library update is coming soon?

like image 834
Zygimantas Avatar asked Jan 17 '26 03:01

Zygimantas


2 Answers

The REST URL to publish a message on Queue/Topic will be like,

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

The authorization SAS Token has to be part of the request header

For further read, REST Run-Time APIs

like image 193
GeekzSG Avatar answered Jan 19 '26 19:01

GeekzSG


It's also possible by using the AMQP protocol. I recently used AMQP to communicate with an Azure IoTHubClient, all in a DNXCore5.0 project. I used the AMQPNetLite Library to do so, it also has Service Bus Examples!

like image 30
Jorn.Beyers Avatar answered Jan 19 '26 18:01

Jorn.Beyers



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!