Move QuicRealtimeServeConfig to the file's type-declaration tail

Program.cs is a top-level-statements file: every type declaration (the
existing ServeConfig, DialConfig and friends) lives after every top-level
statement and local function, all clustered at the end. The new record landed
between two local functions instead, which is CS8803: "top-level statements
must precede namespace and type declarations." Moved beside DialConfig, where
its neighbors already live.

Found by a direct `dotnet build` run on Yggdrasil after the interop test's own
error message was truncated by Node's console printing before reaching the
actual compiler diagnostic.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-23 13:18:20 +02:00
commit c57b613582

View file

@ -1301,8 +1301,6 @@ static X509Certificate2 CreateQuicInteropCertificate()
return X509CertificateLoader.LoadPkcs12(generated.Export(X509ContentType.Pfx), null);
}
sealed record QuicRealtimeServeConfig(int Port, int Frames, string Delivery, int IntervalMs);
static Dictionary<string, string> ParseArgs(string[] args)
{
var parsed = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
@ -1537,6 +1535,8 @@ sealed record DialConfig(
int? TargetRudpPort,
string SchemaPath);
sealed record QuicRealtimeServeConfig(int Port, int Frames, string Delivery, int IntervalMs);
static class InteropPeerShared
{
public const string InteropDocumentType = "cultnet.interop-note";