Summary
Miscellaneous code quality findings from the Developer review that don't fit neatly into other themed issues. Includes disposal gaps, event handler leaks, inconsistent patterns, and configuration improvements.
Source: Comprehensive themed agent review (Developer)
Checklist
Resource Disposal
Event Handler Leaks
Configuration
Code Consistency
Logging
Minor Fixes
Priority
Tier 3 - Medium (disposal, events), Tier 4 - Low (consistency, logging)
Summary
Miscellaneous code quality findings from the Developer review that don't fit neatly into other themed issues. Includes disposal gaps, event handler leaks, inconsistent patterns, and configuration improvements.
Source: Comprehensive themed agent review (Developer)
Checklist
Resource Disposal
_mcpHostServiceproperly ifStopAsync()throws_statusTimerin Lite closing handlerNotificationService._trayIcondisposal chainEvent Handler Leaks
DispatcherTimer.Tickhandlers inOnClosedButton.Clickhandlers for dynamically created tabsConfiguration
App.xaml.csstatic settings (30+ properties) with injectableISettingsServiceEmailAlertService.Currentstatic instance with DI pattern.editorconfigenforcement for consistent style (braces, using declarations)Code Consistency
usingdeclarations (C# 8+) vs legacyusingblocksSafeToDecimal/SafeToInt16helpers - enforce usage or removeRefreshAsyncvsCheckConnectionAsync(both are refresh operations)ConcurrentDictionaryfor_openTabs(thread safety)Logging
Loggervs LiteAppLoggerhave different APIs)Minor Fixes
NumericFilterHelper.EvaluateRange(): fix negative-to-negative range parsingCredentialService: differentiate CryptographicException vs UnauthorizedAccessExceptionRemoteCollectorService: initialize health entries for never-run collectorsPriority
Tier 3 - Medium (disposal, events), Tier 4 - Low (consistency, logging)