Configuring Windows Service Bus Transport - NimbusAPI/Nimbus GitHub Wiki

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

Install-Package Nimbus.Transports.WindowsServiceBus

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

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

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