feat(batch1): add init parity hooks for ciphers and constants

This commit is contained in:
Joseph Doherty
2026-02-28 06:05:06 -05:00
parent eed61696af
commit f9b582dcca
7 changed files with 84 additions and 4 deletions

View File

@@ -56,6 +56,16 @@ public static class CipherSuites
CipherMapById = byId;
}
/// <summary>
/// Compatibility init hook for PortTracker parity with Go <c>init()</c>.
/// Safe and idempotent.
/// </summary>
public static void Init()
{
_ = CipherMap;
_ = CipherMapById;
}
/// <summary>
/// Returns the default set of TLS 1.2 cipher suites.
/// .NET manages cipher suite selection at the OS/SChannel/OpenSSL level;

View File

@@ -214,6 +214,15 @@ public static class ServerConstants
GitCommit = string.Empty;
}
/// <summary>
/// Compatibility init hook for PortTracker parity with Go <c>init()</c>.
/// Safe and idempotent.
/// </summary>
public static void Init()
{
_ = GitCommit;
}
/// <summary>
/// Truncates a VCS revision string to 7 characters for display.
/// Mirrors <c>formatRevision</c> in const.go.