For the complete documentation index, see llms.txt. This section of documentation is indexed by https://docs.particular.net/nservicebus/llms.txt. Here is the markdown version of this page. Markdown versions of documentation pages are available by appending .md to the page URL. Directory URLs use index.md.

Azure Functions (Isolated Worker) Upgrade Version 3 to 4

Code first API to set connection string

Setting the connection string can now be done as part of calling UseNServiceBus()

Instead of

functionsHostBuilder.UseNServiceBus(() => new ServiceBusTriggeredEndpointConfiguration(endpointName){
    ConnectionString = "CONNECTIONSTRING"
});

use:

functionsHostBuilder.UseNServiceBus(endpointName, "CONNECTIONSTRING");