Treat Starbridge summary as a managed document
This commit is contained in:
parent
cb1d133a30
commit
9b75da659e
5 changed files with 15 additions and 15 deletions
|
|
@ -11001,7 +11001,7 @@ static void RequireDaemonVersePublication(string root)
|
|||
"AetheriaRuntimeDaemonCommandBoundaryDocument.Create",
|
||||
"AetheriaRuntimeDaemonSoaFramePublisher.BuildCurrentZoneEntities(stateFilePath, frame)",
|
||||
"AetheriaRuntimeDaemonProviderAdvertisementDocument.Create",
|
||||
"AetheriaRuntimeStarbridgeProjection.ProjectSessionSummary(",
|
||||
"AetheriaRuntimeStarbridgeDocuments.SessionSummary(",
|
||||
"StarbridgeScenario",
|
||||
"StarbridgeSession",
|
||||
"var catalog = options.Catalog ?? new AetheriaRuntimeCatalogSnapshot(",
|
||||
|
|
@ -11373,7 +11373,7 @@ static void RequireDaemonVersePublication(string root)
|
|||
"AetheriaRuntimeDaemonHealthDocument health",
|
||||
"AetheriaRuntimeDaemonCommandBoundaryDocument commandBoundary",
|
||||
"AetheriaRuntimeStarbridgeSessionSummaryDocument? starbridge = null",
|
||||
"AetheriaRuntimeStarbridgeProjection.ProjectSessionSummary(frame)",
|
||||
"AetheriaRuntimeStarbridgeDocuments.SessionSummary(frame)",
|
||||
"AetheriaRuntimeSurfaceStateRefs.SourceRef(stateRef)",
|
||||
"AetheriaRuntimeDaemonStateRefs.CurrentEntityName",
|
||||
"AetheriaRuntimeDaemonStateRefs.CurrentTargetName",
|
||||
|
|
@ -11891,7 +11891,7 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
|
|||
"_managedStarbridgeSession?.Dispose()",
|
||||
"return _aetheriaState ??= CreateAetheriaState();",
|
||||
"AetheriaRuntimeLoadoutTemplatesDocument",
|
||||
"ProjectStarbridgeSummaryAsync",
|
||||
"StarbridgeSummaryAsync",
|
||||
"CultMeshReactiveDocument<AetheriaRuntimeDaemonFrameDocument>? managedDaemonFrame = null;",
|
||||
"managedDaemonFrame = state.Reactive<AetheriaRuntimeDaemonFrameDocument>();",
|
||||
"managedCatalog = state.Reactive<AetheriaRuntimeCatalogSnapshot>();",
|
||||
|
|
@ -12028,13 +12028,13 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
|
|||
"Aetheria runtime Verse client station-refit projection still polls loadout templates instead of sampling managed reactive client inputs.");
|
||||
}
|
||||
|
||||
if (client.Contains("ProjectStarbridgeSummaryAsync", StringComparison.Ordinal) &&
|
||||
if (client.Contains("StarbridgeSummaryAsync", StringComparison.Ordinal) &&
|
||||
(client.Contains("starbridgeScenarioDocument.LatestAsync()", StringComparison.Ordinal) ||
|
||||
client.Contains("starbridgeSessionDocument.LatestAsync()", StringComparison.Ordinal) ||
|
||||
client.Contains("catalogDocument.LatestAsync()", StringComparison.Ordinal)))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"Aetheria runtime Verse client Starbridge projection still polls sibling documents instead of sampling managed reactive client inputs.");
|
||||
"Aetheria runtime Verse client Starbridge summary document still polls sibling documents instead of sampling managed reactive client inputs.");
|
||||
}
|
||||
|
||||
if (client.Contains("RequireFrameAsync", StringComparison.Ordinal) ||
|
||||
|
|
@ -12166,12 +12166,12 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
|
|||
}
|
||||
|
||||
var starbridgeSummaryStart = client.IndexOf(
|
||||
"Task<AetheriaRuntimeStarbridgeSessionSummaryDocument> ProjectStarbridgeSummaryAsync",
|
||||
"Task<AetheriaRuntimeStarbridgeSessionSummaryDocument> StarbridgeSummaryAsync",
|
||||
StringComparison.Ordinal);
|
||||
if (starbridgeSummaryStart < 0)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"AetheriaRuntimeVerseClient no longer exposes the managed Starbridge summary projection.");
|
||||
"AetheriaRuntimeVerseClient no longer exposes the managed Starbridge summary document.");
|
||||
}
|
||||
|
||||
var indexedDocumentStart = client.IndexOf("static string IndexedDocumentId", starbridgeSummaryStart, StringComparison.Ordinal);
|
||||
|
|
@ -12184,7 +12184,7 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
|
|||
starbridgeSummaryBlock.Contains("AetheriaRuntimeCatalogStore.OpenReadOnly", StringComparison.Ordinal))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"Starbridge summary projection must use the managed runtime catalog document instead of reopening the catalog store.");
|
||||
"Starbridge summary document must use the managed runtime catalog document instead of reopening the catalog store.");
|
||||
}
|
||||
|
||||
var requiredClientBootstrapSymbols = new[]
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ namespace GameCult.Aetheria.State.Verse
|
|||
frame ??= new AetheriaRuntimeDaemonFrameDocument();
|
||||
health ??= new AetheriaRuntimeDaemonHealthDocument();
|
||||
commandBoundary ??= AetheriaRuntimeDaemonCommandBoundaryDocument.Create(frame.DaemonId);
|
||||
starbridge ??= AetheriaRuntimeStarbridgeProjection.ProjectSessionSummary(frame);
|
||||
starbridge ??= AetheriaRuntimeStarbridgeDocuments.SessionSummary(frame);
|
||||
|
||||
var run = frame.Run ?? new AetheriaRuntimeRunCheckpointCommit();
|
||||
var zone = FindCurrentZone(run);
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ namespace GameCult.Aetheria.State.Verse
|
|||
Array.Empty<AetheriaRuntimeCatalogItem>(),
|
||||
Array.Empty<AetheriaRuntimeCorporation>(),
|
||||
Array.Empty<AetheriaRuntimeNameFile>());
|
||||
var starbridgeSummary = AetheriaRuntimeStarbridgeProjection.ProjectSessionSummary(
|
||||
var starbridgeSummary = AetheriaRuntimeStarbridgeDocuments.SessionSummary(
|
||||
frame,
|
||||
options.StarbridgeScenario,
|
||||
options.StarbridgeSession,
|
||||
|
|
|
|||
|
|
@ -119,9 +119,9 @@ namespace GameCult.Aetheria.State.Verse
|
|||
[Key(5)] public bool IsActive { get; set; }
|
||||
}
|
||||
|
||||
public static class AetheriaRuntimeStarbridgeProjection
|
||||
public static class AetheriaRuntimeStarbridgeDocuments
|
||||
{
|
||||
public static AetheriaRuntimeStarbridgeSessionSummaryDocument ProjectSessionSummary(
|
||||
public static AetheriaRuntimeStarbridgeSessionSummaryDocument SessionSummary(
|
||||
AetheriaRuntimeDaemonFrameDocument frame,
|
||||
AetheriaRuntimeStarbridgeScenarioDocument? scenario = null,
|
||||
AetheriaRuntimeStarbridgeSessionDocument? session = null,
|
||||
|
|
|
|||
|
|
@ -489,7 +489,7 @@ namespace GameCult.Aetheria.State.Verse
|
|||
starbridgeSessionDocument,
|
||||
ManagedFrameDocument(
|
||||
"aetheria.starbridge.summary",
|
||||
ProjectStarbridgeSummaryAsync,
|
||||
StarbridgeSummaryAsync,
|
||||
AetheriaRuntimeDaemonSchemas.StarbridgeSessionSummary,
|
||||
CultMesh.ProjectionSource(AetheriaRuntimeVerseRecordKeys.StarbridgeScenarioLatest.ToString()),
|
||||
CultMesh.ProjectionSource(AetheriaRuntimeVerseRecordKeys.StarbridgeSessionLatest.ToString()),
|
||||
|
|
@ -589,10 +589,10 @@ namespace GameCult.Aetheria.State.Verse
|
|||
RequireManagedCatalog()));
|
||||
}
|
||||
|
||||
Task<AetheriaRuntimeStarbridgeSessionSummaryDocument> ProjectStarbridgeSummaryAsync(
|
||||
Task<AetheriaRuntimeStarbridgeSessionSummaryDocument> StarbridgeSummaryAsync(
|
||||
AetheriaRuntimeDaemonFrameDocument frame)
|
||||
{
|
||||
return Task.FromResult(AetheriaRuntimeStarbridgeProjection.ProjectSessionSummary(
|
||||
return Task.FromResult(AetheriaRuntimeStarbridgeDocuments.SessionSummary(
|
||||
frame,
|
||||
managedStarbridgeScenario?.Current,
|
||||
managedStarbridgeSession?.Current,
|
||||
|
|
|
|||
Loading…
Reference in a new issue