Repository navigation
Allow descriptions on connection string parameters - #18942
Draft
Bhupesh Cholake (RealBhupesh) wants to merge 1 commit into
Draft
Bhupesh Cholake (RealBhupesh) wants to merge 1 commit into
Bhupesh Cholake (RealBhupesh) wants to merge 1 commit into
Conversation
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 18942Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 18942" |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds description and Markdown support to connection-string parameters.
Changes:
- Adds a
WithDescriptionoverload. - Adds focused property coverage.
- Updates the generated API baseline.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
ParameterResourceBuilderExtensions.cs |
Adds the fluent API. |
AddParameterTests.cs |
Tests description and Markdown behavior. |
api/Aspire.Hosting.cs |
Records the public API signature. |
| /// <returns>Resource builder for the connection string parameter.</returns> | ||
| /// <exception cref="ArgumentException">The resource is not a parameter resource.</exception> | ||
| [AspireExportIgnore(Reason = "Polyglot app hosts use the internal addConnectionString dispatcher export.")] | ||
| public static IResourceBuilder<IResourceWithConnectionString> WithDescription(this IResourceBuilder<IResourceWithConnectionString> builder, string description, bool enableMarkdown = false) |
Comment on lines
+985
to
+987
|
|
||
| [AspireExportIgnore(Reason = "Polyglot app hosts use the internal addConnectionString dispatcher export.")] | ||
| public static ApplicationModel.IResourceBuilder<ApplicationModel.IResourceWithConnectionString> WithDescription(this ApplicationModel.IResourceBuilder<ApplicationModel.IResourceWithConnectionString> builder, string description, bool enableMarkdown = false) { throw null; } |
This branch has not been deployed
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.
Summary
WithDescriptionsupport to the parameter-basedAddConnectionStringoverloadFixes #18704
Validation
dotnet build tests/Aspire.Hosting.Tests/Aspire.Hosting.Tests.csproj --no-restoreMicrosoft.TestPlatform.CommunicationUtilities.