Revises how to avoid double serialization, and exposure to application-defined serialization settings, for entity message serialization. This is a challenge because orchestrators that send messages to entities have to do so by calling SendEvent, which serializes the content using the application-defined serializer.
Previously, double serialization was avoided by serializing to JObject. But that is hacky and does not actually work with STJ.
Instead we now revise the SendEvent implementation in DurableTask.Core directly, so it can detect EntityMessageEvents and use the internally defined serialization mechanism.
Revises how to avoid double serialization, and exposure to application-defined serialization settings, for entity message serialization. This is a challenge because orchestrators that send messages to entities have to do so by calling
SendEvent
, which serializes the content using the application-defined serializer.Previously, double serialization was avoided by serializing to
JObject
. But that is hacky and does not actually work with STJ.Instead we now revise the
SendEvent
implementation in DurableTask.Core directly, so it can detect EntityMessageEvents and use the internally defined serialization mechanism.