The dependency on Microsoft.Azure.WebJobs.Extensions.ServiceBus has been updated which means that the new Azure.Messaging.ServiceBus SDK is being used by the function host to receive messages. If the solution contains code that directly accesses native SDK types, read the Microsoft Migration Guide.
In version 2 of the Azure Functions package,
IFunctionEndpoint exposed two different
Process methods where the one accepting a
IMessageReceiver would be the one that processed the message in "atomic sends with receive" mode.
Version 3 exposes different methods for the two different use cases.
Task ProcessAtomic(ServiceBusReceivedMessage message, ExecutionContext executionContext, ServiceBusClient serviceBusClient, ServiceBusMessageActions messageActions, ILogger functionsLogger = null);
to process the message with "atomic sends with receive" transaction mode.
Task ProcessNonAtomic(ServiceBusReceivedMessage message, ExecutionContext executionContext, ILogger functionsLogger = null);
to process the message in "receive only" transaction mode.
FunctionEndpoint can no longer be injected, use