Having upgraded to Microsoft.Azure.ServiceBus v5.2.0 MessageReceiver no longer works.
MessageReceiver messageReceiver
Microsoft.Azure.WebJobs.Host: Error indexing method 'BrunelWMSServiceBus'. Microsoft.Azure.WebJobs.Host: Can't bind parameter 'messageReceiver' to type 'Microsoft.Azure.ServiceBus.Core.MessageReceiver'.
MessageReceiver is still supported according to the doc but it no longer works in the run-time. I've seen references to parameter naming but messageReceiver is apparently ok.
ServiceBusMessageActions messageActions
works but MUST be called messageActions or it will fail to bind too. Just wondering whether to stop using MessageReceiver and use ServiceBusMessageActions instead.
It's not added to the specs yet, but obviously IMessageReceiver shouldn't be used any longer as it belongs to Microsoft.Azure.ServiceBus library which is deprecated and not referenced by Microsoft.Azure.WebJobs.Extensions.ServiceBus SDK anymore. So ServiceBusMessageActions messageActions parameter is definitely the way to go now.
https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus#message-settlement
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With