Class ChronicleContext
- Namespace
- Chronicler
- Assembly
- Chronicler.dll
Holds link registrations and pending link assignments for a recording session.
public sealed class ChronicleContext
- Inheritance
-
ChronicleContext
- Inherited Members
Constructors
ChronicleContext()
Creates a new context with an empty link registry.
public ChronicleContext()
Properties
Links
Gets the link registry for this session.
public ChronicleLinkRegistry Links { get; }
Property Value
- ChronicleLinkRegistry
The same mutable registry throughout the context's lifetime.
Methods
ResolveDeferredLinks()
Resolves pending links and invokes their assignment callbacks.
public void ResolveDeferredLinks()
Remarks
The built-in serializers call this after the root RecordData(IChronicler) returns. Each pass checks pending links from newest to oldest. Passes continue while links resolve. Callbacks run synchronously and may register targets for other pending links. Completed assignments remain applied on failure, and pending callbacks stay queued in this context.
Exceptions
- InvalidOperationException
A pass makes no progress and links remain unresolved.