mirror of
https://github.com/RedWizardsLab/EchoHub.git
synced 2026-09-04 08:36:11 +02:00
1.1 KiB
1.1 KiB
v0.2.2 - Startup & Shutdown Fixes
Fixes
- Fixed server hanging on startup when IRC gateway is enabled — circular DI dependency between
IrcGatewayService→IChatService→IChatBroadcaster→IrcBroadcastercaused the DI container to deadlock - Fixed
SignalRBroadcastereagerly resolvingIHubContext<ChatHub>during DI construction, which could deadlock on some platforms — now lazy-resolves viaIServiceProvideron 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 usingwith explicit dispose bounded to 3 seconds, so a stuckHubConnectioncan no longer block shutdown - Reduced host shutdown timeout from 30s (default) to 5s
- Caught
OperationCanceledExceptionin 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