Integrate Aetheria reactive state worktree

This commit is contained in:
Meta Vens 2026-06-28 01:18:21 +01:00
commit 65133ac8a0
61 changed files with 3427 additions and 402 deletions

View file

@ -70,6 +70,25 @@ public static class AetheriaVerseReplica
.ConfigureAwait(false);
}
public static async Task<int> ApplyRawSnapshotResponseAsync(
CultMeshNode node,
CultNetSnapshotResponseRawMessage response,
bool flush = true)
{
if (node == null)
throw new ArgumentNullException(nameof(node));
if (response == null)
throw new ArgumentNullException(nameof(response));
var applied = await node.Database.Documents
.ApplyRawSnapshotResponseAsync(node.Cache, response)
.ConfigureAwait(false);
if (flush)
await node.FlushAsync().ConfigureAwait(false);
return applied.Count;
}
public static async Task<IReadOnlyList<T>> FetchScopedDocumentsAsync<T>(
string endpoint,
IReadOnlyList<string>? schemaIds = null,