Skip to content

[docs] Update custom-resource-commands to use new CommandResults.Success displayImmediately overload#897

Merged
davidfowl merged 1 commit into
release/13.4from
docs/add-displayimmediately-overload-cd4c3e4294eca964
May 11, 2026
Merged

[docs] Update custom-resource-commands to use new CommandResults.Success displayImmediately overload#897
davidfowl merged 1 commit into
release/13.4from
docs/add-displayimmediately-overload-cd4c3e4294eca964

Conversation

@aspire-repo-bot
Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#16906 by @davidfowl.

Targeting main because release/13.4 does not yet exist on microsoft/aspire.dev (milestone on the source PR is 13.4).

Why this PR is needed

PR #16906 adds a new CommandResults.Success(message, result, resultFormat, displayImmediately) overload to make the DisplayImmediately flag discoverable directly from the factory method, without requiring developers to construct a CommandResultData object manually.

The existing docs in fundamentals/custom-resource-commands.mdx showed the lower-level object-initializer pattern for setting DisplayImmediately. The updated example uses the new, simpler four-argument overload.

What changed

  • Updated src/frontend/src/content/docs/fundamentals/custom-resource-commands.mdx: The C# code example in the "Auto-open the result dialog in the dashboard" section now uses CommandResults.Success(message, result, resultFormat, displayImmediately: true) instead of the value: new CommandResultData { ... } object-initializer form.

Generated by PR Documentation Check for issue #16906 · ● 13.2M ·

…ss displayImmediately overload

Update the 'Auto-open the result dialog in the dashboard' C# example
to use the new four-argument CommandResults.Success overload added in
microsoft/aspire#16906, replacing the lower-level CommandResultData
object-initializer pattern with the more ergonomic factory call.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label May 9, 2026
@aspire-repo-bot aspire-repo-bot Bot requested a review from JamesNK May 9, 2026 07:35
@davidfowl davidfowl changed the base branch from main to release/13.4 May 11, 2026 04:34
@davidfowl davidfowl marked this pull request as ready for review May 11, 2026 04:34
@davidfowl davidfowl requested a review from IEvangelist as a code owner May 11, 2026 04:34
@davidfowl davidfowl merged commit f015e0a into release/13.4 May 11, 2026
5 checks passed
@davidfowl davidfowl deleted the docs/add-displayimmediately-overload-cd4c3e4294eca964 branch May 11, 2026 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant