Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.17k stars 4.53k forks source link

[Messaging] Mark EventData, ServiceBusMessage, and ServiceBusReceivedMessage as IModelSerializable #37989

Open JoshLove-msft opened 11 months ago

JoshLove-msft commented 11 months ago

Once this interface ships in Core, we can apply it to these AMQP types. Also potentially can be applied to AmqpAnnotatedMessage.

jsquire commented 11 months ago

Assumption: The serialization format can be controlled and customized such that they go to/from Amqp bytes. If this is limited to JSON/XML support, it is not helpful.

JoshLove-msft commented 6 months ago

I believe this is now IPersistableModel - https://learn.microsoft.com/en-us/dotnet/api/system.clientmodel.primitives.ipersistablemodel-1?view=azure-dotnet-preview

Looks like we would need to add a new property for Amqp format similar to https://learn.microsoft.com/en-us/dotnet/api/system.clientmodel.primitives.modelreaderwriteroptions.xml?view=azure-dotnet-preview#system-clientmodel-primitives-modelreaderwriteroptions-xml