Message Deserializing
string deserializedMessage = Encoding.UTF8.GetString(eventArgs.Body);Last updated
Was this helpful?
The data you receive via RabbitMQ arrives as an array of bytes. Since messages are sent as JSON, decode the bytes as UTF-8 to deserialize them:
string deserializedMessage = Encoding.UTF8.GetString(eventArgs.Body);Last updated
Was this helpful?
Was this helpful?