Closed james-novino closed 5 years ago
@james-novino RegisterMessageHandler
on both QueueClient
and SubscriptionClient
does exactly that. Have you examined it?
Readme.md calls has a section for samples. Two of those do exactly what you ask.
Except certain things that I didn't quite understand how you've achieved with the old client. Specifically: decoder and before/during/after. That feels to me like your in-house customization.
I was able to figure out how to do it using the RegisterMessageHandler, after some additional investigation. Thank you, @SeanFeldman.
We have legacy code that subscribes to a queue on Azure Service Bus that was written using the WindowsAzure.ServiceBus library. We are developing new code in .Net Core aganist Microsoft.Azure.ServiceBus to send and consume from topics. However, there doesn't seem to be any corresponding functionality in Microsoft.Azure.ServiceBus for something like this :
We have an implemention that is heavily reliant on the fact that we can execute callbacks both before, during and after message completion.
I had noted there were some issues with earlier versions of the .Net Core library but it wasn't clear if a workaround existed or not (particularly that didn't require rework of legacy code).
Actual Behavior
Expected Behavior
Versions