Table of Contents

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

Gets the link registry for this session.

public ChronicleLinkRegistry Links { get; }

Property Value

ChronicleLinkRegistry

The same mutable registry throughout the context's lifetime.

Methods

Resolves pending links and invokes their assignment callbacks.

public void ResolveDeferredLinks()

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.