Class ChronicleLinkRegistry
- Namespace
- Chronicler
- Assembly
- Chronicler.dll
Stores stable-link resolution strategies for external or runtime-owned objects.
public sealed class ChronicleLinkRegistry
- Inheritance
-
ChronicleLinkRegistry
- Inherited Members
Constructors
ChronicleLinkRegistry()
public ChronicleLinkRegistry()
Methods
RegisterInstance<T>(string, T, string?)
Registers a concrete instance so the chronicler can save and load it through a stable identifier.
public void RegisterInstance<T>(string id, T value, string? slot = null)
Parameters
Type Parameters
T
RegisterResolver<T>(IRecordLinkResolver<T>, string?)
Registers a custom link resolver for the given type and optional slot.
public void RegisterResolver<T>(IRecordLinkResolver<T> resolver, string? slot = null)
Parameters
resolverIRecordLinkResolver<T>slotstring
Type Parameters
T
TryGetReferenceId<T>(T, out string?, string?)
Attempts to read a stable identifier from a concrete instance.
public bool TryGetReferenceId<T>(T value, out string? id, string? slot = null)
Parameters
Returns
Type Parameters
T
TryResolve<T>(string, out T, string?)
Attempts to resolve a stable identifier into an instance of the requested type.
public bool TryResolve<T>(string id, out T value, string? slot = null)
Parameters
Returns
Type Parameters
T
UnregisterInstance<T>(string, string?)
Removes a previously registered concrete instance.
public bool UnregisterInstance<T>(string id, string? slot = null)
Parameters
Returns
Type Parameters
T