Skip to content

Document polyglot integration authoring patterns#1230

Merged
davidfowl merged 2 commits into
mainfrom
davidfowl/polyglot-authoring-tips
Jun 8, 2026
Merged

Document polyglot integration authoring patterns#1230
davidfowl merged 2 commits into
mainfrom
davidfowl/polyglot-authoring-tips

Conversation

@davidfowl

Copy link
Copy Markdown
Contributor

This updates the multi-language integration authoring guide with field-tested ATS authoring guidance from recent polyglot fixes, so integration authors can design APIs that work well for C# AppHosts and generated SDKs such as TypeScript.

Summary

  • Add ATS-first authoring patterns for capability IDs, MethodName, overload design, DTO/input shapes, ATS values, callbacks, member expansion, and generated module validation.
  • Add concise C# and TypeScript examples for common integration-authoring decisions, including overload collapse, flat options DTOs, command service usage, and generated property shapes.
  • Clarify analyzer enablement paths, diagnostics including ASPIREEXPORT014, XML doc comment guidance, and [AspireValue] scanner constraints.

Validation

  • Ran targeted Prettier on the edited MDX file.
  • Ran git diff --check.
  • Verified the local docs preview rendered the updated guidance.

Add ATS-first authoring guidance for Aspire integrations, including overload design, capability naming, DTO shapes, callbacks, service access, value catalogs, and analyzer validation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 8, 2026 17:01
@davidfowl davidfowl requested a review from IEvangelist as a code owner June 8, 2026 17:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the multi-language integration authoring guide to incorporate ATS-first, “field-tested” guidance aimed at helping integration authors design C# hosting APIs that generate clean, usable SDKs (notably TypeScript).

Changes:

  • Expanded the guide with ATS-first patterns for capability IDs, overload shaping, DTO/input design, callback contexts, and member expansion guidance.
  • Updated examples and guidance around analyzer enablement, diagnostics (including ASPIREEXPORT014), and [AspireValue] catalog constraints.
  • Refreshed TypeScript snippets to emphasize generated-shape validation and callback/service-provider usage.
Show a summary per file
File Description
src/frontend/src/content/docs/extensibility/multi-language-integration-authoring.mdx Adds ATS-first authoring patterns and updates analyzer/value-catalog guidance and TypeScript examples.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 9

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1230. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1230 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

Remove misleading awaits from synchronous generated TypeScript service examples and tighten guidance to consult generated signatures for service-provider APIs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@davidfowl davidfowl merged commit e434621 into main Jun 8, 2026
9 checks passed
@davidfowl davidfowl deleted the davidfowl/polyglot-authoring-tips branch June 8, 2026 18:42
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.

3 participants