Implement STA Runtime And Message Pump #23

Closed
opened 2026-04-26 15:22:33 -04:00 by dohertj2 · 2 comments
Owner

Source: $file
Milestone: $currentMilestone

Labels: area:worker, type:feature, priority:p0

Deliverables:

  • dedicated STA thread,
  • COM initialization on STA,
  • command queue wake event,
  • MsgWaitForMultipleObjectsEx loop,
  • PeekMessage/TranslateMessage/DispatchMessage,
  • last STA activity timestamp,
  • clean thread shutdown.

Acceptance criteria:

  • commands execute on STA thread,
  • pump continues while idle,
  • shutdown exits thread,
  • watchdog sees STA activity.

Tests:

  • fake command executes on STA,
  • queue wake,
  • shutdown,
  • watchdog timestamp.
Source: $file Milestone: $currentMilestone Labels: `area:worker`, `type:feature`, `priority:p0` Deliverables: - dedicated STA thread, - COM initialization on STA, - command queue wake event, - `MsgWaitForMultipleObjectsEx` loop, - `PeekMessage`/`TranslateMessage`/`DispatchMessage`, - last STA activity timestamp, - clean thread shutdown. Acceptance criteria: - commands execute on STA thread, - pump continues while idle, - shutdown exits thread, - watchdog sees STA activity. Tests: - fake command executes on STA, - queue wake, - shutdown, - watchdog timestamp.
dohertj2 added this to the mxaccess-worker-foundation milestone 2026-04-26 15:22:33 -04:00
dohertj2 added the area:workertype:featurepriority:p0 labels 2026-04-26 15:22:33 -04:00
dohertj2 added a new dependency 2026-04-26 15:28:36 -04:00
dohertj2 added a new dependency 2026-04-26 15:28:37 -04:00
dohertj2 added a new dependency 2026-04-26 15:28:37 -04:00
dohertj2 added a new dependency 2026-04-26 15:28:37 -04:00
dohertj2 added a new dependency 2026-04-26 15:28:39 -04:00
Author
Owner

Worker 1 is taking this issue.

Branch: agent-1/issue-23-implement-sta-runtime-and-message-pump
Worktree: C:\Users\dohertj2\Desktop\mxaccessgw-agent-1

Worker 1 is taking this issue. Branch: agent-1/issue-23-implement-sta-runtime-and-message-pump Worktree: C:\Users\dohertj2\Desktop\mxaccessgw-agent-1
Author
Owner

Implemented and merged via PR #66: #66

Commit: e81682e
Merge commit on main: 97c30b9d00
Branch: agent-1/issue-23-implement-sta-runtime-and-message-pump

Verification:

  • dotnet build src\MxGateway.sln passed with 0 warnings and 0 errors.
  • dotnet test src\MxGateway.Worker.Tests\MxGateway.Worker.Tests.csproj -p:Platform=x86 passed: 38 tests.
  • dotnet test src\MxGateway.sln --no-build passed: 151 total tests.

Acceptance criteria verified: dedicated STA runtime, command queue, message pumping abstraction, timeout/disposal paths, and focused STA tests are in place.

Implemented and merged via PR #66: https://gitea.dohertylan.com/dohertj2/mxaccessgw/pulls/66 Commit: e81682e Merge commit on main: 97c30b9d00cd0ff1feaf068c5315579f210637ec Branch: agent-1/issue-23-implement-sta-runtime-and-message-pump Verification: - dotnet build src\\MxGateway.sln passed with 0 warnings and 0 errors. - dotnet test src\\MxGateway.Worker.Tests\\MxGateway.Worker.Tests.csproj -p:Platform=x86 passed: 38 tests. - dotnet test src\\MxGateway.sln --no-build passed: 151 total tests. Acceptance criteria verified: dedicated STA runtime, command queue, message pumping abstraction, timeout/disposal paths, and focused STA tests are in place.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: dohertj2/mxaccessgw#23