Skip to content

feat(simulate): SimulationService orchestration and ViewModel hook #31#35

Merged
JusterZhu merged 1 commit into
mainfrom
feat/simulate-service
May 20, 2026
Merged

feat(simulate): SimulationService orchestration and ViewModel hook #31#35
JusterZhu merged 1 commit into
mainfrom
feat/simulate-service

Conversation

@JusterZhu
Copy link
Copy Markdown
Collaborator

Part of #31 - Sub-Issue #4

SimulationService orchestrates the full simulation flow:

  1. Validate: check app dir, patch file, dotnet 10.0 SDK
  2. Copy patch to server dir, register with LocalUpdateServer
  3. Start embedded ASP.NET server
  4. Generate client.cs + upgrade.cs via ClientGeneratorService
  5. Run dotnet run client.cs, capture stdout/stderr with 60s timeout
  6. Verify result (file count, delete_files.json consumption)

SimulateViewModel now calls SimulationService.RunAsync on Start button.

Build: 0 errors

- SimulationService orchestrates full simulation flow:
  validate → copy patch → start server → generate scripts → run client → verify
- Checks dotnet SDK version before starting
- Runs client.cs via dotnet run, captures stdout/stderr with timeout
- Verifies update result (file count, delete_files.json consumption)
- SimulateViewModel now calls SimulationService on Start
Copilot AI review requested due to automatic review settings May 20, 2026 15:04
@JusterZhu JusterZhu merged commit 9233719 into main May 20, 2026
1 check failed
@JusterZhu JusterZhu review requested due to automatic review settings May 20, 2026 15:25
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.

1 participant