DebugProxyPass dynamic server_name
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user