Interface IMessagePackSerializationCallbacks
- Namespace
- Nerdbank.MessagePack
- Assembly
- Nerdbank.MessagePack.dll
An interface that may be implemented to receive callbacks before serialization and after deserialization.
public interface IMessagePackSerializationCallbacks
Methods
OnAfterDeserialize()
Performs any additional operations on an object after it has been deserialized.
void OnAfterDeserialize()
OnAfterSerialize()
Performs any additional operations on an object after it is serialized.
void OnAfterSerialize()
OnBeforeDeserialize()
Performs any additional operations on an object before any properties are set.
void OnBeforeDeserialize()
Remarks
A converter may not call this method if it is not supported. In particular, types with required or init properties or a deserializing constructor should expect this method to not be called if the default converter is used.
OnBeforeSerialize()
Performs any additional operations on an object before it is serialized.
void OnBeforeSerialize()