Azure Functions with Azure Service Bus Upgrade Version 2 to 3

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

Last modified