JsonConverters in Durable Functions Isolated model

  Kiến thức lập trình

I am moving a Durable Functions app from the in-process model to the isolated model.

I have some messages sent between orchestrators and activities and between activities which require custom serialization.

Currently I register my JsonConverter’s using IMessageSerializerSettingsFactory in Startup.cs as per “Customizing serialization with Dependency Injection”.

IMessageSerializerSettingsFactory does not appear available in the isolated model.

Microsoft docs makes reference to WorkerOptions.Serializer but doesn’t provide an example.

How can I register my JsonConverter‘s so that they are used during message serialization in the isolated model?

LEAVE A COMMENT