feat: add lifecycle options (lame duck, PID file, ports file, config stub)

This commit is contained in:
Joseph Doherty
2026-02-22 23:33:44 -05:00
parent 149c852510
commit d0aa6a5fdd

View File

@@ -36,6 +36,18 @@ public sealed class NatsOptions
// 0 = disabled
public int MonitorHttpsPort { get; set; }
// Lifecycle / lame-duck mode
public TimeSpan LameDuckDuration { get; set; } = TimeSpan.FromMinutes(2);
public TimeSpan LameDuckGracePeriod { get; set; } = TimeSpan.FromSeconds(10);
// File paths
public string? PidFile { get; set; }
public string? PortsFileDir { get; set; }
public string? ConfigFile { get; set; }
// Profiling (0 = disabled)
public int ProfPort { get; set; }
// TLS
public string? TlsCert { get; set; }
public string? TlsKey { get; set; }