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

Add IDistributedApplicaitonBuilder.GetResourceBuilder API #7354

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

ReubenBond
Copy link
Member

Description

This PR adds an extension method IDistributedApplicationBuilder.CreateResourceBuilder<T>(string name) where T : IResource intended to make it easier for tests to get and modify resources added by the AppHost.

Fixes #3022

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

@ReubenBond ReubenBond force-pushed the rebond/get-resource-builder branch from ce5631d to 46e427f Compare January 31, 2025 22:04
@davidfowl davidfowl merged commit 855ebcb into main Jan 31, 2025
9 checks passed
@davidfowl davidfowl deleted the rebond/get-resource-builder branch January 31, 2025 23:26
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.

Consider adding methods to easily get a typed resource builder via the resource name
2 participants