Skip to content

refactor: convert MonitorLauncher from static to injectable instance class#401

Merged
rygel merged 1 commit intodevelopfrom
refactor/monitor-launcher-di
Mar 21, 2026
Merged

refactor: convert MonitorLauncher from static to injectable instance class#401
rygel merged 1 commit intodevelopfrom
refactor/monitor-launcher-di

Conversation

@rygel
Copy link
Copy Markdown
Owner

@rygel rygel commented Mar 21, 2026

Summary

  • Create IMonitorLauncher interface for all public instance methods
  • MonitorLauncher accepts ILogger and optional Func overrides via constructor
  • Remove AsyncLocal TestOverrides, PushTestOverrides, TestOverrideScope
  • Tests create MonitorLauncher instances with constructor-injected fakes
  • Register as singleton in UI.Slim, Web, and CLI DI containers
  • Fix: don't quarantine metadata with startup failure while process alive

Test plan

  • Build succeeds with 0 errors
  • 884 tests passing (CI will verify)

🤖 Generated with Claude Code

…class

- Create IMonitorLauncher interface for all public instance methods
- MonitorLauncher now accepts ILogger and optional Func overrides via
  constructor instead of static SetLogger and AsyncLocal TestOverrides
- Remove PushTestOverrides, TestOverrides, TestOverrideScope entirely
- Tests create MonitorLauncher instances with constructor-injected fakes
- Register IMonitorLauncher as singleton in UI.Slim, Web, and CLI DI
- MonitorLifecycleService, MonitorService, MonitorLauncherClient all
  accept IMonitorLauncher via constructor injection
- Fix: don't quarantine metadata with startup failure while process alive

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rygel rygel merged commit 1f61b5d into develop Mar 21, 2026
19 checks passed
@rygel rygel deleted the refactor/monitor-launcher-di branch March 21, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants