NServiceBus.Transport.AzureServiceBus | Azure Service Bus transport | Azure library
kandi X-RAY | NServiceBus.Transport.AzureServiceBus Summary
kandi X-RAY | NServiceBus.Transport.AzureServiceBus Summary
Azure Service Bus transport
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of NServiceBus.Transport.AzureServiceBus
NServiceBus.Transport.AzureServiceBus Key Features
NServiceBus.Transport.AzureServiceBus Examples and Code Snippets
Community Discussions
Trending Discussions on NServiceBus.Transport.AzureServiceBus
QUESTION
I'm trying to get a pair of NSB endpoint (an event publisher and an event subscriber) running on top of Azure Service Bus.
I have created the service bus and the topic through the Azure portal, and my publisher is able to publish events to the topic just fine. Here's the code for that:
...ANSWER
Answered 2019-Jul-23 at 20:51The exception that you got states that the subscription with the rule for the event is not found. If you create the topic manually and configure the publisher to use it, the publisher will send the event to the topic. For the subscriber to work, it needs to find the topic (which you've created and configured on both sides) but the subscription along with the rule needs to be created as well. The missing subscription should match the subscribing / receiving endpoint name, rich-test-vs-receiver-nsb
, and the rule should match the message full name, NsbAsbPoc.Messages.MyMessage
. You can find visualization here.
What I recommend is to enable installers in your development environment to see what NServiceBus creates first so that you could disable those later and script the creation of the entities. To enable installers, see this document.
QUESTION
I am currently attempting to send messages to an Azure ServiceBus queue via NServiceBus 7.1.9.
We are using
- dotNet Core 2.0
- NServiceBus 7.1.9
- NServiceBus.MSDependencyInjection 0.1.4
- NServiceBus.Persistence.AzureStorage 2.3.0
- NServiceBus.Transport.AzureServiceBus 1.1.1
However, messages appear to send, but never arrive at the destination queue.
We are attempting to use the default Microsoft Dependency Injection, which again, appears to configure correctly, but doesn't send any messages.
In startup.cs
we configure the service and add it to the DI container
ANSWER
Answered 2019-Jun-20 at 16:14It appears your endpoint configuration in the ConfigureNServiceBus
method does not have any routing defined. Without this, the endpoint will not know where to deliver command messages.
I suspect you got it to work because you added the destination endpoint name in the Send()
command directly. This works, but it can become unmanageable when you have a lot of endpoints and/or you want to modify the routing at run-time.
The better approach is to configure routing during start up. See Command Routing on Particular's documentation site.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install NServiceBus.Transport.AzureServiceBus
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page