.NET: add container-hosted workflow sample - #8232
Open
Naveen (1aifanatic) wants to merge 1 commit into
Open
Conversation
Naveen (1aifanatic)
temporarily deployed
to
github-app-auth
September 10, 2026 12:13 — with
GitHub Actions
Inactive
Naveen (1aifanatic)
temporarily deployed
to
github-app-auth
September 10, 2026 12:13 — with
GitHub Actions
Inactive
Naveen (1aifanatic)
temporarily deployed
to
github-app-auth
September 10, 2026 12:14 — with
GitHub Actions
Inactive
Naveen (1aifanatic)
temporarily deployed
to
github-app-auth
September 10, 2026 12:14 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A stray, nontechnical marker remains in a public sample comment.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds a runnable ASP.NET Core sample demonstrating container-hosted, deterministic .NET workflows.
Changes:
- Adds expense-routing workflow endpoints with validation and isolated runs.
- Adds a non-root multi-stage container build.
- Documents usage and registers the sample.
File summaries
| File | Description |
|---|---|
dotnet/samples/04-hosting/README.md |
Lists the new sample. |
dotnet/samples/04-hosting/ContainerWorkflow/README.md |
Documents usage and hosting boundaries. |
dotnet/samples/04-hosting/ContainerWorkflow/Program.cs |
Implements the HTTP workflow host. |
dotnet/samples/04-hosting/ContainerWorkflow/Dockerfile.dockerignore |
Filters container build context. |
dotnet/samples/04-hosting/ContainerWorkflow/Dockerfile |
Builds the non-root runtime image. |
dotnet/samples/04-hosting/ContainerWorkflow/ContainerWorkflow.csproj |
Defines the sample project. |
dotnet/agent-framework-dotnet.slnx |
Registers the project in the solution. |
Review details
- Files reviewed: 7/7 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Naveen (1aifanatic)
marked this pull request as ready for review
September 10, 2026 12:16
Naveen (1aifanatic)
temporarily deployed
to
github-app-auth
September 10, 2026 12:16 — with
GitHub Actions
Inactive
Naveen (1aifanatic)
temporarily deployed
to
integration
September 10, 2026 12:40 — with
GitHub Actions
Inactive
Naveen (1aifanatic)
temporarily deployed
to
integration
September 10, 2026 12:40 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
Developers need a runnable example of a pro-code workflow hosted outside Foundry. This sample exposes a small expense-routing workflow over HTTP and builds it into a non-root Linux container. Deterministic executors make deployment verification possible without model credentials.
Description & Review Guide
Related Issue
Contributes to #2056. This is one of the four requested deployment scenarios; it intentionally does not close the umbrella issue. No competing open PR for this sample was found during the preflight.
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.