Improve XML documentation coverage across src modules and sync generated analysis artifacts.

This commit is contained in:
Joseph Doherty
2026-03-14 03:56:58 -04:00
parent ba0d65317a
commit 46ead5ea9f
152 changed files with 2821 additions and 11284 deletions

View File

@@ -23,6 +23,13 @@ public sealed class MonitorServer : IAsyncDisposable
private readonly AccountzHandler _accountzHandler;
private readonly PprofHandler _pprofHandler;
/// <summary>
/// Creates monitoring HTTP server wiring and endpoint handlers.
/// </summary>
/// <param name="server">Server runtime state used by monitoring handlers.</param>
/// <param name="options">Monitoring and feature options controlling endpoint behavior.</param>
/// <param name="stats">Shared HTTP request stats counters.</param>
/// <param name="loggerFactory">Logger factory for monitor diagnostics.</param>
public MonitorServer(NatsServer server, NatsOptions options, ServerStats stats, ILoggerFactory loggerFactory)
{
_logger = loggerFactory.CreateLogger<MonitorServer>();
@@ -137,12 +144,19 @@ public sealed class MonitorServer : IAsyncDisposable
}
}
/// <summary>
/// Starts the monitoring web server.
/// </summary>
/// <param name="ct">Cancellation token for server startup.</param>
public async Task StartAsync(CancellationToken ct)
{
await _app.StartAsync(ct);
_logger.LogInformation("Monitoring listening on {Urls}", string.Join(", ", _app.Urls));
}
/// <summary>
/// Stops and disposes monitoring server resources.
/// </summary>
public async ValueTask DisposeAsync()
{
await _app.StopAsync();