I want to switch some code from using .NET's DataContractSerializer
to using ServiceStack's TypeSerializer
for the increased speed benefits. Unfortunately, the code I inherited relies rather heavily on OnSerializing
/OnSerialized
/OnDeserializing
/OnDeserialized
, which ServiceStack appears not to call. Am I missing something? Assuming not, is there a good way to abuse things to fake out the intended functionality? OnSerialized
/OnDeserialized
can be roughly approximated through reflection, but I'm at a loss for OnSerializing
and OnDeserializing
.
No, there is no such facility; you'd have to fork ServiceStack or jacket the serialization/deserialization yourself with appropriate calls.