Running locally without Azure Cloud Services emulator

NuGet Package: NServiceBus.Hosting.Azure (8.x)
Target Version: NServiceBus 7.x
The NServiceBus Azure Host package is deprecated as of Version 9 as Microft has deprecated the Cloud Service hosting model. Users are recommended to switch to a different cloud hosting model.

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.Hosting.Azure.HostProcess package
  • Update the endpoint project's Debug start action to point to NServiceBus.Hosting.Azure.HostProcess.exe
  • Launch the endpoint with debugger

Last modified