This commit is contained in:
StellaOps Bot
2025-12-09 00:20:52 +02:00
parent 3d01bf9edc
commit bc0762e97d
261 changed files with 14033 additions and 4427 deletions

View File

@@ -60,8 +60,14 @@ public sealed class ReachabilityUnionIngestionService : IReachabilityUnionIngest
}
var metaEntry = entries["meta.json"];
using var metaStream = metaEntry.Open();
using var metaDoc = await JsonDocument.ParseAsync(metaStream, cancellationToken: cancellationToken).ConfigureAwait(false);
await using var metaBuffer = new MemoryStream();
await using (var metaStream = metaEntry.Open())
{
await metaStream.CopyToAsync(metaBuffer, cancellationToken).ConfigureAwait(false);
}
metaBuffer.Position = 0;
using var metaDoc = await JsonDocument.ParseAsync(metaBuffer, cancellationToken: cancellationToken).ConfigureAwait(false);
var metaRoot = metaDoc.RootElement;
var filesElement = metaRoot.TryGetProperty("files", out var f) && f.ValueKind == JsonValueKind.Array
@@ -77,6 +83,13 @@ public sealed class ReachabilityUnionIngestionService : IReachabilityUnionIngest
})
.ToList();
metaBuffer.Position = 0;
var metaPath = Path.Combine(casRoot, "meta.json");
await using (var metaDest = File.Create(metaPath))
{
await metaBuffer.CopyToAsync(metaDest, cancellationToken).ConfigureAwait(false);
}
var filesForResponse = new List<ReachabilityUnionFile>();
foreach (var file in recorded)