I am trying to prevent persistence from persisting a non-serializable instance. Is it possible for a PersistenceParticipant extension to remove such a value in MapValues before the workflow is placed into durable storage?
The instance in my case is provided via
context.ScheduleAction(Body, _instance, OnCompleted, null);
The instance here is provided by an extension and resolved from outside the workflow instance logic and control. There is no guarantee that the instance is serializable.
I want the PersistenceParticipant extension to be able to pull this instance out of the workflow state data before it is serialized and then recreate again in PublishValues.
Is this possible?
View Complete Post