Improve XML documentation coverage across src modules and sync generated analysis artifacts.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user