Skip to content

Particular/NServiceBus.Transport.AzureServiceBus

Repository files navigation

NServiceBus.Transport.AzureServiceBus

NServiceBus.Transport.AzureServiceBus enables the use of the Azure Service Bus Brokered Messaging service as the underlying transport used by NServiceBus. This transport uses the Azure.Messaging.ServiceBus NuGet package.

It is part of the Particular Service Platform, which includes NServiceBus and tools to build, monitor, and debug distributed systems.

See the Azure Service Bus Transport documentation for more details on how to use it.

Running tests locally

Acceptance Tests

Follow these steps to run the acceptance tests locally:

  • Add a new environment variable AzureServiceBus_ConnectionString containing a connection string to your Azure Service Bus namespace.
  • Add a new environment variable AzureServiceBus_ConnectionString_Restricted containing a connection string to the same namespace with Send and Listen rights only.
  • Some tests are using Azure.Identity with the DefaultAzureCredential and require one of the supported credentials to be present locally. For more information see the troubleshooting guideline

Unit Tests

  • Add a new environment variable AzureServiceBus_ConnectionString containing a connection string to your Azure Service Bus namespace (can be same as for acceptance tests).