refactor: Update changelog for v0.2.2 to reflect startup and shutdown fixes, and standardize constructor injection

This commit is contained in:
HueByte
2026-02-19 14:45:14 +01:00
parent 46a30c6b80
commit 328821cd14
2 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ Release history for EchoHub.
## Releases
- [v0.2.2](v0.2.2.md) - Shutdown Fix
- [v0.2.2](v0.2.2.md) - Startup & Shutdown Fixes
- [v0.2.1](v0.2.1.md) - Shutdown & CI Fixes
- [v0.2.0](v0.2.0.md) - IRC Gateway
- [v0.1.1](v0.1.1.md) - Directory Connection Self-Healing
+9 -2
View File
@@ -1,7 +1,14 @@
# v0.2.2 - Shutdown Fix
# v0.2.2 - Startup & Shutdown Fixes
## Fixes
- Actually fixed server hanging on Ctrl+C — replaced `await using` with explicit dispose bounded to 3 seconds, so a stuck `HubConnection` can no longer block shutdown
- Fixed server hanging on startup when IRC gateway is enabled — circular DI dependency between `IrcGatewayService``IChatService``IChatBroadcaster``IrcBroadcaster` caused the DI container to deadlock
- Fixed `SignalRBroadcaster` eagerly resolving `IHubContext<ChatHub>` during DI construction, which could deadlock on some platforms — now lazy-resolves via `IServiceProvider` on first use
- Simplified IRC service registration to use standard `AddSingleton<IChatBroadcaster, IrcBroadcaster>` instead of manual factory, breaking the circular resolution chain
- Fixed server hanging on Ctrl+C — replaced `await using` with explicit dispose bounded to 3 seconds, so a stuck `HubConnection` can no longer block shutdown
- Reduced host shutdown timeout from 30s (default) to 5s
- Caught `OperationCanceledException` in the directory service reconnect loop so cancellation exits immediately instead of propagating through dispose
## Refactoring
- Replaced primary constructors with standard constructor injection across all server classes for consistency