paolosalvatori / ServiceBusExplorer

The Service Bus Explorer allows users to connect to a Service Bus namespace and administer messaging entities in an easy manner. The tool provides advanced features like import/export functionality or the ability to test topic, queues, subscriptions, relay services, notification hubs and events hubs.
MIT License
1.98k stars 577 forks source link

Abstracting EventHubs EventData #740

Closed SeanFeldman closed 10 months ago

SeanFeldman commented 10 months ago

Fixes #720 #738 #638

A breaking change was introduced in the track 0 SDK WindowsAzure.ServiceBus somewhere after version 6.0.3. As a result of that, it broke SBE ability to clone EventHub messages for UI purposes. This PR is a workaround for the issue to allow rendering EH messages, its custom and system properties, w/o throwing exceptions.

https://github.com/paolosalvatori/ServiceBusExplorer/assets/1309622/95ebead3-8968-403c-b5b6-30ce443253c5

Disclaimer: I have not tested all the permutations of what can be done with EH. I would appreciate it if someone could take a look to see if there are any undesirable side effects. This is merely an attempt to unblock those who need to be able to list and evaluate messages sent to EH.

SeanFeldman commented 10 months ago

@paolosalvatori or @ErikMogensen, could you review/approve?

@DelS-AGL was kind enough to give a quick test run and caught one regression that is now fixed.