Issue #23: implement sta runtime and message pump #66

Merged
dohertj2 merged 1 commits from agent-1/issue-23-implement-sta-runtime-and-message-pump into main 2026-04-26 17:23:04 -04:00
Owner

Summary

  • Add StaRuntime with a dedicated STA thread, COM apartment initialization, command wake event, Win32 message pumping, activity timestamp, and shutdown handling.
  • Add focused worker STA tests for command execution, wake behavior, shutdown, activity updates, and command exception handling.
  • Document the implemented STA runtime boundary in the worker design.

Tests

  • dotnet msbuild src\MxGateway.Worker\MxGateway.Worker.csproj /restore /p:Configuration=Debug /p:Platform=x86
  • dotnet test src\MxGateway.Worker.Tests\MxGateway.Worker.Tests.csproj -p:Platform=x86
## Summary - Add `StaRuntime` with a dedicated STA thread, COM apartment initialization, command wake event, Win32 message pumping, activity timestamp, and shutdown handling. - Add focused worker STA tests for command execution, wake behavior, shutdown, activity updates, and command exception handling. - Document the implemented STA runtime boundary in the worker design. ## Tests - dotnet msbuild src\MxGateway.Worker\MxGateway.Worker.csproj /restore /p:Configuration=Debug /p:Platform=x86 - dotnet test src\MxGateway.Worker.Tests\MxGateway.Worker.Tests.csproj -p:Platform=x86
dohertj2 added 1 commit 2026-04-26 17:21:45 -04:00
dohertj2 merged commit 97c30b9d00 into main 2026-04-26 17:23:04 -04:00
Sign in to join this conversation.