Skip to content

Configuring Azure Service Bus Transport

Damian Maclennan edited this page Nov 10, 2017 · 3 revisions

To use Azure Service Bus you first need to install the ASB transport as a nuget package.

Install-Package Nimbus.Transports.AzureServiceBus

Then you configure the transport and pass it to the Bus Builder.

var transport = new AzureServiceBusTransportConfiguration().WithConnectionString(connectionString);

var bus = new BusBuilder().Configure()
                            .WithNames("MyApplication", Environment.MachineName)
                            .WithTransport(transport)
                            .WithTypesFrom(typeProvider)
                            .Build();