AymDev / MessengerAzureBundle

A Symfony 4/5/6 bundle providing a Messenger transport for Azure Service Bus using the Azure REST API.
MIT License
10 stars 7 forks source link

CustomProperties #13

Open cricrespo opened 1 year ago

cricrespo commented 1 year ago

Hi I have a question in relation to send message to service Bus.

When I Send some message I saw that it's posible to add BrokerProperties in the dispatch, But, there is posible to send CustomProperties?

Mattin commented 11 months ago

You can add your custom properties during serialization into header.

AymDev commented 10 months ago

Hello ! I can't find anything about "CustomProperties" except that it would have been renamed to "application properties" ? I can't find any documentation about that on the REST API.

Could you share some documentation about the feature you'd like to use with this bundle ?

EDIT: I just found something on Message Headers and Properties:

In addition to these properties, you can specify custom properties. If a single message is sent or received, each custom property is placed in its own HTTP header. If a batch of messages is sent, custom properties are part of the JSON-encoded HTTP body. For more information, see Send Message and Send Message Batch.

If this is what you were talking about, this is not currently supported but you could work on a PR about it :slightly_smiling_face: