Cacheless single-file API: WriteDocument encodes the declared type, the registry is the call's argument, DecodeDocument moves to CultCodec, ReadStoreSnapshot's gate is pinned
SerializePayload takes the declared type. A call attaches its registry under the store's gate and restores the previous one, so no call leaves a registry on the store. Not yet run; the next commit set is verified on Yggdrasil. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f54472e5fe
commit
19f3a5edbb
7 changed files with 221 additions and 69 deletions
|
|
@ -372,8 +372,8 @@ namespace GameCult.Caching.Tests
|
|||
return store;
|
||||
}
|
||||
|
||||
protected override byte[] SerializePayload(object document) =>
|
||||
CultDocumentMessagePackSerialization.SerializeUntyped(document, document.GetType(), Registry);
|
||||
protected override byte[] SerializePayload(object document, Type documentType) =>
|
||||
CultDocumentMessagePackSerialization.SerializeUntyped(document, documentType, Registry);
|
||||
|
||||
protected override object DeserializePayload(Type documentType, byte[] payload) =>
|
||||
CultDocumentMessagePackSerialization.DeserializeUntyped(documentType, payload, Registry);
|
||||
|
|
|
|||
Loading…
Reference in a new issue