Serve daemon snapshots from managed records

This commit is contained in:
Meta Vens 2026-06-28 04:27:38 +01:00
commit ee16e3a29f
4 changed files with 93 additions and 30 deletions

View file

@ -441,6 +441,18 @@ public sealed class AetheriaStateNode : IAsyncDisposable, IDisposable
AetheriaRuntimeVerseRecordKeys.StarbridgeSessionLatest);
}
public Task<CultRecordHandle<AetheriaRuntimeStarbridgeSessionSummaryDocument>> PutStarbridgeSessionSummaryAsync(
AetheriaRuntimeStarbridgeSessionSummaryDocument summary)
{
return Database.PutAsync(AetheriaRuntimeVerseRecordKeys.StarbridgeSessionSummary, summary);
}
public Task<AetheriaRuntimeStarbridgeSessionSummaryDocument?> GetStarbridgeSessionSummaryAsync()
{
return Database.GetAsync<AetheriaRuntimeStarbridgeSessionSummaryDocument>(
AetheriaRuntimeVerseRecordKeys.StarbridgeSessionSummary);
}
public Task<CultRecordHandle<EveSurfaceState>> PutDaemonGameSurfaceAsync(EveSurfaceState surface)
{
return Database.PutAsync(new CultRecordKey(AetheriaProviderAdvertisementProjector.DaemonGameSurfaceKey), surface);