[This is preliminary documentation and is subject to change.]
Denotes modes of handling type registry by Slim serializer
Namespace: NFX.Serialization.SlimAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax
Members
Member name | Value | Description | |
---|---|---|---|
PerCall | 0 | Type registry object is created for every Serialize/Deserialize call only cloning global types. This is the default mode which is thread-safe(many threads can call Serialize/Deserialize at the same time) | |
Batch | 1 | Type registry object is cloned from global types only once and it is retained after making calls. This is not a thread-safe mode, so only one thread may call Serialize/Deserialize at a time. This mode is beneficial for cases when many object instances of various types need to be transmitted so repeating their type names in every Ser/Deser is not efficient. In batch mode the type name is written/read to/from stream only once, then type handles are transmitted instead thus saving space and extra allocations |
See Also