Skip to content

Configuring Windows Service Bus Transport

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

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();