Method ReplaceSnapshot(ImmutableArray<XElement>)
Replaces the in-memory snapshot wholesale. Called by the host-side init listener
during context startup (and by any future periodic refresh route).
public void ReplaceSnapshot(ImmutableArray<XElement> newSnapshot)
Remarks
Uses a plain assignment: is a struct wrapping a single
reference field, and reference-sized writes are atomic on all supported .NET runtimes,
so readers of always observe either the old or new array in
full (no torn read). cannot be used
here because it is constrained to reference types and primitives and throws
for value-type generics like ImmutableArray.