Table of Contents

Class SerializationContext

Namespace
MarymoorStudios.Core.Serialization.System
Assembly
MarymoorStudios.Core.Serialization.dll

Abstract base type for a context passed to Serializer<T> during serialization and materialization operations.

public abstract class SerializationContext
Inheritance
SerializationContext
Derived
Inherited Members

Constructors

SerializationContext()

protected SerializationContext()

Properties

UpLevelVisitor

An (optional) record visitor that is used to perform a metadata walk on sliced and diced up-level content during a down-level materialization.

public virtual RecordVisitor? UpLevelVisitor { get; }

Property Value

RecordVisitor

Remarks

If (the default) then up-level content is skipped without being walked. Skipping some kinds of content (e.g. Promise) can lead to resource leaks. Skipping is strictly safe for purely passive data content (e.g. on-disk data serializations or RecordIO). Active serialization contexts (e.g. RPC) should override this property to provide a visitor that will properly reclaim resources that would have otherwise been skipped.