Running locally without Azure Cloud Services emulator

Component: Azure Cloud Service Host
NuGet Package NServiceBus.Hosting.Azure (6.x)
Target NServiceBus Version: 5.x
Standard support for version 5.x of NServiceBus has expired. For more information see our Support Policy.
The NServiceBus Azure Host package will be deprecated as of version 9. Instead use self-hosting in Azure Cloud Services. Refer to the upgrade guide for further details.

Debugging endpoints hosted with Cloud Services requires starting up Azure Cloud Service emulator and loading endpoint in the emulator. It's a resource intensive operation and if no scale out of roles is required, can be done by loading endpoints using a host process provided by NServiceBus instead.

Following these steps will enable local execution of endpoints without Azure Cloud Service emulator:

  • Add NuGet reference to the NServiceBus.Host package
  • Update the endpoint project's Debug start action to point to NServiceBus.Host.exe
  • Launch the endpoint with debugger

Last modified