refactor: Update IrcGatewayService to use IServiceProvider for dependency resolution

feat: Simplify IChatBroadcaster registration in IrcServiceExtensions
feat: Add diagnostic logging for IRC configuration and environment
This commit is contained in:
HueByte
2026-02-19 14:09:56 +01:00
parent 13297fd017
commit 8dfdc163bf
3 changed files with 17 additions and 8 deletions
+4
View File
@@ -202,6 +202,10 @@ while (true)
}
}, heartbeatCts.Token);
// ── Config diagnostics ─────────────────────────────────────────────
Console.Error.WriteLine($"[DIAG] Irc:Enabled = {app.Configuration.GetValue<bool>("Irc:Enabled")}");
Console.Error.WriteLine($"[DIAG] Environment = {app.Environment.EnvironmentName}");
// ── Resolve singletons one-by-one to find which one hangs ────────
Console.Error.WriteLine("[DIAG] Resolving PresenceTracker...");
_ = app.Services.GetRequiredService<PresenceTracker>();