Fix Azure ServiceBus persistent container support#7136
Merged
sebastienros merged 23 commits intomainfrom Feb 5, 2025
Merged
Conversation
davidfowl
reviewed
Jan 17, 2025
davidfowl
reviewed
Jan 17, 2025
This was referenced Jan 18, 2025
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
AddAzureServiceBusWithEmulatorGetsExpectedPort - actual failing test |
davidfowl
reviewed
Jan 23, 2025
eerhardt
reviewed
Jan 23, 2025
eerhardt
reviewed
Jan 29, 2025
eerhardt
reviewed
Jan 29, 2025
eerhardt
reviewed
Jan 29, 2025
Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
# Conflicts: # src/Aspire.Hosting.Azure.ServiceBus/AzureServiceBusExtensions.cs # src/Aspire.Hosting/PublicAPI.Unshipped.txt
# Conflicts: # src/Aspire.Hosting/PublicAPI.Unshipped.txt
davidfowl
reviewed
Feb 4, 2025
| /// </summary> | ||
| /// <param name="builder">The <see cref="IDistributedApplicationBuilder"/>.</param> | ||
| /// <returns>A new instance of <see cref="AspireStore"/>.</returns> | ||
| public static AspireStore Create(IDistributedApplicationBuilder builder) |
Contributor
There was a problem hiding this comment.
This is a weird API. Can we make this internal and instead expose something on the builder? (ext method). I guess we can do that later in review.
davidfowl
reviewed
Feb 4, 2025
eerhardt
reviewed
Feb 4, 2025
eerhardt
reviewed
Feb 4, 2025
eerhardt
reviewed
Feb 4, 2025
eerhardt
reviewed
Feb 4, 2025
eerhardt
reviewed
Feb 4, 2025
eerhardt
reviewed
Feb 4, 2025
eerhardt
reviewed
Feb 4, 2025
eerhardt
reviewed
Feb 4, 2025
eerhardt
reviewed
Feb 4, 2025
| /// </summary> | ||
| /// <param name="builder">The <see cref="IDistributedApplicationBuilder"/>.</param> | ||
| /// <returns>The <see cref="IAspireStore"/>.</returns> | ||
| public static IAspireStore CreateStore(this IDistributedApplicationBuilder builder) |
Member
There was a problem hiding this comment.
I know we can iterate on this API, so we don't have to block on this, but I think this is going to clutter up normal dev's intellisense. Normal apphost devs don't need to use this API, so I don't think it should be top-level like "AddContainer" or "AddPostgres", etc.
Contributor
Author
There was a problem hiding this comment.
Ok to move to Azure.Hosting.ApplicationModel instead?
eerhardt
reviewed
Feb 4, 2025
eerhardt
reviewed
Feb 4, 2025
eerhardt
reviewed
Feb 4, 2025
eerhardt
reviewed
Feb 4, 2025
eerhardt
approved these changes
Feb 5, 2025
| /// </summary> | ||
| /// <remarks> | ||
| /// The store is created in the ./obj folder of the Application Host. | ||
| /// If the ASPIRE_STORE_DIR environment variable is set this will be used instead. |
Member
There was a problem hiding this comment.
Suggested change
| /// If the ASPIRE_STORE_DIR environment variable is set this will be used instead. | |
| /// If the ASPIRE__STORE__PATH environment variable is set this will be used instead. |
| /// If the ASPIRE_STORE_DIR environment variable is set this will be used instead. | ||
| /// | ||
| /// The store is specific to a <see cref="IDistributedApplicationBuilder"/> instance such that each application can't | ||
| /// conflict with others. A <em>.aspire</em> prefix is also used to ensure that the folder can be delete without impacting |
Member
There was a problem hiding this comment.
Suggested change
| /// conflict with others. A <em>.aspire</em> prefix is also used to ensure that the folder can be delete without impacting | |
| /// conflict with others. A <em>.aspire</em> prefix is also used to ensure that the folder can be deleted without impacting |
16 tasks
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Description
Fixes #7071
Issues identified:
Now the password and the folder are stored in user secrets and reused.
Checklist
<remarks />and<code />elements on your triple slash comments?breaking-changetemplate):doc-ideatemplate):