-
Notifications
You must be signed in to change notification settings - Fork 475
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 EndpointAnnotation directly in AddProject #2579
Conversation
This seems like a good tradeoff.
I think this should be the same pattern yes, another parameter. Though I think maybe just a single argument
Explain? |
Let's move forward with this approach. |
To clarify, the change is to make launchProfile processing part of the call to AddProject. // Use the default launch profile (first one)
builder.AddProject<Projects.Api>("api");
// Pick a specific launch profile
builder.AddProject<Projects.Api>("api", launchProfile: "http");
// No launch profile
builder.AddProject<Projects.Api>("api", launchProfile: null); |
Assuming the default behavior is maintained this looks good |
So we add a new overload with |
Yep and we deprecate |
0613368
to
d988ce1
Compare
src/Aspire.Hosting/Extensions/ProjectResourceBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/Aspire.Hosting/Extensions/ProjectResourceBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/Aspire.Hosting/Extensions/ProjectResourceBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/Aspire.Hosting/Extensions/ProjectResourceBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/Aspire.Hosting/Extensions/ProjectResourceBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. One question for clarification and suggest a timeframe in the obsolete messages. I'm assuming you'll address David's feedback too but overall this looks good. Send it!
src/Aspire.Hosting/Extensions/ProjectResourceBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
- Build on work from dotnet/aspire#2579 & proposal in dotnet/aspire#2658
- Build on work from dotnet/aspire#2579 & proposal in dotnet/aspire#2658
Closes #2472
Microsoft Reviewers: Open in CodeFlow