DebugProxyPass dynamic server_name

This commit is contained in:
2024-12-04 16:35:35 -07:00
parent cf531cff36
commit 2f65dd3120
3 changed files with 27 additions and 9 deletions

View File

@ -124,6 +124,12 @@ internal static partial class Helper20241108
{
}
[JsonSourceGenerationOptions(WriteIndented = true)]
[JsonSerializable(typeof(WorkItem[]))]
private partial class WorkItemCollectionSourceGenerationContext : JsonSerializerContext
{
}
private record Record(WorkItem WorkItem, WorkItem? Parent, Record[]? Children, Record[]? Related, Record[]? Successors)
{
@ -326,7 +332,7 @@ internal static partial class Helper20241108
else
{
string json = File.ReadAllText(checkFile);
results = JsonSerializer.Deserialize<WorkItem[]>(json);
results = JsonSerializer.Deserialize(json, WorkItemCollectionSourceGenerationContext.Default.WorkItemArray);
}
return results is null ? null : new(results);
}