ServiceStack/ServiceStack.Text — pull request #188 by awr (2012-09-11 22:01:47+00:00)
Title: Add serialization hooks for OnSerializing, OnDeserialized

Attempting to get a clean pull request here.

I'm not sure if this is the best approach here, so any feedback is much appreciated :)

What I'm trying to accomplish is the ability to have hooks at the time of de/serialization; what I don't want to do is take over responsibility for the object's de/serialization, but rather to affect what happens in some way.

An alternative approach would be to leverage the RawSerializeFn approach, and somehow use the standard implementation for serialize (but I couldn't find a good way to get at the standard serialize approach as a consumer).

-Andrew