Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow connection names in database components #30

Merged
merged 4 commits into from
Oct 4, 2023
Merged

Conversation

eerhardt
Copy link
Member

@eerhardt eerhardt commented Oct 2, 2023

(In draft until I update READMEs and add tests for the new parameter).

Make database components consistent with Redis connection string structure.

  • Add a string connectionName parameter to AddRedis
  • Rename the keyed DI methods to .AddKeyedRedis. - keep just the string name for now.
  • Hosting changes to pass the component's name as the ConnectionStrings__{name} env var

Note: I also removed the SqlServer database from the sample app, since it doesn't do anything and only slows down and complicates the app.

Make database components consistent with Redis connection string structure.

- Add a string connectionName parameter to AddRedis
- Rename the keyed DI methods to .AddKeyedRedis.
    - keep just the string name for now.
- Hosting changes to pass the component's name as the ConnectionStrings__{name} env var
Copy link
Member

@mitchdenny mitchdenny left a comment

Choose a reason for hiding this comment

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

A few minor nits but otherwise good to see this get finalized!

@davidfowl
Copy link
Member

Do we update the configuration schema for this too?

@eerhardt
Copy link
Member Author

eerhardt commented Oct 3, 2023

Do we update the configuration schema for this too?

There aren't any changes to the configuration schema in this change.

@eerhardt eerhardt marked this pull request as ready for review October 3, 2023 23:55
@eerhardt
Copy link
Member Author

eerhardt commented Oct 3, 2023

I've added tests and updated the READMEs. This should be ready for review now.

@davidfowl davidfowl merged commit b0008fb into main Oct 4, 2023
4 checks passed
@davidfowl davidfowl deleted the ConnectionStringDB branch October 4, 2023 02:31
@danmoseley danmoseley added the area-components Issues pertaining to Aspire Component packages label Nov 16, 2023
timheuer added a commit that referenced this pull request Mar 21, 2024
davidfowl pushed a commit that referenced this pull request Mar 23, 2024
* Icons for Aspire.Hosting.Azure packages
Using Azure Icons from Brand Central
#3077

* Added readme files for Azure hosting packages
#3077

Related Work Items: #30

* Fixup of Azure components readme
- fixed references to now use split up package names

* Fixing missed typo correction for CosmosDbClient

* PR feedback: reference client libraries
@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-components Issues pertaining to Aspire Component packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants