Value/Sequence AMQP message bodies is reside inside of the Microsoft.Azure.ServiceBus.Messageinternal object BodyObject .
internal object BodyObject
{
get;
set;
}
Since the property is internal, so that is not passed to the Language Worker side.
We can fetch the value by the MessageInteropExtensions.GetBody<string>() extension method. I hope it is included as a SystemProperty like this. It might help the customer who want to fetch the Value/Sequence AMQP message
The original issue is https://github.com/Azure/azure-service-bus-java/issues/95 . Currently we have no way to get the message bodies from non-C# languages.
Value/Sequence AMQP message bodies is reside inside of the
Microsoft.Azure.ServiceBus.Message
internal object BodyObject
.Since the property is internal, so that is not passed to the Language Worker side.
We can fetch the value by the
MessageInteropExtensions.GetBody<string>()
extension method. I hope it is included as a SystemProperty like this. It might help the customer who want to fetch theValue/Sequence AMQP message
https://github.com/Azure/azure-webjobs-sdk/pull/2129/files https://github.com/Azure/azure-functions-java-worker/blob/dev/endtoendtests/src/main/java/com/microsoft/azure/functions/endtoend/EventHubTriggerTests.java#L27
FYI 5.x discussion. https://github.com/Azure/azure-sdk-for-net/issues/20236
CC: @pragnagopa @alrod